Form Script: onLoad, onSubmit

Use: script components are used to insert Javascript code on 'Onload' and 'OnSubmit' events of each page

Options:

  • Name: script name
  • Description: a description of what the script does
  • Script type: this value can be set to "OnSubmit" or "OnLoad" depending on the script type previously defined.
  • Reset: reset the script panel content to its default value
  • Scripting panel: panel in which scripts are defined
    • OnLoad script: script linked to the load of the page
    • OnSubmit script: script linked to the page submit

 

Example:

This following onLoad script sets the question value of component "C_028" depending on which answer is clicked on the MORE_LESS radio buttons on the same page. This insert is taken from the customer satisfaction survey step-by-step example

 

Back to Form components