Global Variables not working
-
i just try to create a global variable with a shortcode.
But it’s not working.
Create ist like in yout FAQ:Yes, it’s possible to define global variables in javascript through the shortcode of the plugin. For example, in the following shortcode [CP_CALCULATED_FIELDS id=”1″ myvar=”4″], the id=”1″ identifies the form to be loaded, and myvar=”4″ definess the global variable myvar with value 4, that you can use in the equations or the queries associated to the “DS” fields: <%myvar%>.
Ex: If your form includes the number field: “fieldname1”, and a calculated field. A possible equation would be fieldname1*myvar
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Global Variables not working’ is closed to new replies.