The JavaScript panel launches a JavaScript editor. This gives you the option to include more expressive JavaScript in your form than a CallJS rule allows, and to also reuse these definitions in multiple rules.

When you create a new form or import an old form, some example JavaScript is generated to help you get started.
Your custom JavaScript must be declared in a specific object in order to prevent any interference with the rendering engine. The object is named based on your form type as follows:
Application Form: Application Type
Contact Form: Contact Type
Others: Case Type
In these names, any spaces must be replaced with “_”. The name of the object is auto-generated in the example.
Once a function is declared, it can be accessed in a CallJS rule with “dot” notation, such as:
myCaseType.exampleFunction();