Performance considerations for scripts

In general, scripts increase the processing required to render forms. Before using scripts, determine if a better performance alternative is available. For example, character masks offer better performance than scripts, with the same results.

You can use JavaScript or FormCalc for calculations and validations in forms. If possible, avoid using validation scripts. These scripts affect performance because of the time required to process them.

If you choose to use scripts, FormCalc usually provides better performance than JavaScript for the following reasons:

  • FormCalc executes simple calculations and validations more quickly.

  • FormCalc interprets the XML Form Object Model syntax directly, which means it can evaluate reference syntax expressions more efficiently.

    You select the script language using the Script Editor.

// Ethnio survey code removed