Summary
This command returns the string that corresponds to the variable specified in the name parameter.
When using this command, the instruction setVar should be used in the export configuration to fill the variable with a string.
Note: This script command is intended to be used with the custom export instruction script. In all other cases, this command will return an empty string.
Attributes
- None
Parameters
- name – name of the variable
Example
In the following example, the custom export instructions “script” and “setVar” are used in conjunction with the script “scriptSampleVarString”.
Form Type Id | Question Id | Instruction | Value | Column Number | Column Title | Data Type |
---|---|---|---|---|---|---|
simpleForm | const $>setVar $>script | VALUE $>stringVar $>scriptSampleVarString | 1 | COL1 | String |
<script scriptId="scriptSampleVarString" > <body> <s:concat> <s:varString name="stringVar" /> <s:string value=" - exported" /> </s:concat> </body> </script>
The output of the script “scriptSampleVarString” is the fixed output: “VALUE – exported”.
Need more help?
Please visit the Fountayn Contact Information page.