jsAPI examples
Send data from one page to another.
On many occasions, when the form/survey consists of multiple pages, there might be a need to execute some logic based on the answers to the previous question(s). The feature called Piping is used to maintain the state across multiple pages.
On the input side of piping, the following JavaScript code needs to be added to the Scripts page of the form/survey:
CODE
|
Consequently, on the receiving end of piping, the following code in start() function is needed in order to read the information and call appropriate logic in functions f_q7() and f_q18() based on it:
CODE
|
Here is another example of piping used to copy address fields from one page of the form/survey to another:
CODE
|