Changes

JavaScript in bxp

725 bytes added, 09:25, 16 October 2015
no edit summary
http://www.allnone.ie/wiki/index.php?title=JavaScript_Self-Referencing_Campaigns
 
== Automatic Variable Listing ==
 
bxp has the ability to automatically create a complete variable listing from the form, to do this simply add''--Full_Listing--'' to your JavaScript code in bxp. This replacement will only generate a full listing in both the JavaScript onLoad section and OnLookUp section of the forms advance settings.
When the listing is created it will create the following two types of JavaScript variables for all questions with the exception of ''Section Headers, Section Groups and Generic Areas''.
 
* var strCDA_X_field_X_X = document.getElementById('strCDA_X_field_X_X); // * Field Mapping Value
* var strCDA_X_field_X_X = document.getElementsByName('strCDA_X_field_X_X); // * Field Mapping Value