Creating scripts using JavaScript

Creating scripts in Designer using JavaScript is similar to creating JavaScript in other applications. You can take advantage of previous knowledge of JavaScript concepts, reuse JavaScript functions using the Designer script object, and take advantage of JavaScript language functionality.

However, notice that although previous JavaScript knowledge is transferable, to effectively use JavaScript on your form design, you must understand how to construct Designer reference syntax. Specifically, you must know how to correctly use the XML Form Object Model reference syntax to access objects on your form design.

This table outlines the key concepts for developing scripts in JavaScript for Designer. The table also provides the location for more information on each concept within the Designer Help .

Key concept

For more information see...

Creating references to object properties and values, including using the resolveNode method.

Referencing object properties and values

resolveNode

To use statement completion to create calculations and scripts

Using the host and event models to test and debug your form.

Testing and debugging calculations and scripts

Referencing object properties and values

Using a script object to reuse your existing JavaScript functions.

Creating and Reusing JavaScript Functions

In addition to the resources available in the Designer Help , the Developer Centercontains extensive scripting resources and documentation.

// Ethnio survey code removed