Including Extra CSS or JavaScript Files
If the new files relate to a template wide addition then they shoul dbe referenced in the file form/xx/z_config/settings.php ( where xx is the ID of the form ) - accessed either via FTP or ecoder.
however, if you do not have access to the template ( if you did not create it for example ) or if the files only need to be included on a specific client website, then the changes should be made to the file go/xx/z_config/client.php ( where xx is the client ID ) - accessed via FTP.
All options work via PHP arrays, which are pre-defined and may already contain other values - so be careful not to remove or empty these arrays - the basic format is simple:
$array_name[] = 'new value';
the above code adds a new array value ( note the empty square brackets after the variable name ) to the array $array_name.
Adding Extra JavaScript
There are 4 settings available for adding Javascript - which you use depends on the where you need the javascript file needs to be called - also note that if you need to add multiple files you should add them in the order they need to be added.
JavaScript files need to be approved before being hosted on the Web Editor server - however, for there is also an option to call files form remote servers, simply include the full http URL.
To have a JS file approved please email it to crew@greenmedia.es with an explanation of why it is required.
- $form_js = array(); // standard javascript include added to head section of HTML ##
- $form_js_onload = array(); // added to onload events - escape ' & " with - i.e function('elements') ##
- $form_js_unload = array(); // unloadable items ##
- $form_js_body = array(); // js files to be included after <body> tags ##
Adding Extra CSS
There is only a sing;le way to add extra style sheets - simply add the full name, including extension and make sure the file is added to the css folder of the template.
- $form_css = array(); // css file name, including extension ##
All CSS files added via z_config settings can not be passed PHP varaibles - to achieve this you would need to add the rules to the existing screen.php



