Scripting - Plug-In Scripting

Creating a Plug-In or Add-On to EZSurvey is possible with use of a JavaScript based EZSurvey scripting language. This is different than Server-Side Scripting because it controls the actions of EZSurvey form editor. Creating custom plug-ins allows Raosoft or customers to develop new features for EZSurvey. Custom plug-ins are an advanced development feature and Raosoft cannot always support use of third-party plug-ins. Working with plug-in scripting requires a moderate amount of programing experience in HTML and JavaScript.



In addition to JSDB objects, EZSurvey scripting supports standard JavaScript syntax. A guide for this syntax can be found at:
Netscape's Core JavaScript Guide 1.5 or
Netscape's Core JavaScript Reference 1.5

JSDB Objects::

JSDB is the engine that runs scripts in EZSurvey. For a list of objects that JSDB supports, but is not limited to, go to:
JSDB Objects

EZSurvey JSDB Objects::

EZSurvey has extra programming objects within JSDB. For a list of JSDB objects that EZSurvey supports go to:


File with the extension .plugin are located in the rsrc directory. You can add the resource object and call the .js file from here, where resourcename is any name you want to give your resource. For example:

<resource name=resourcename>

Inside the resouce object is the form object. Inside the form object is where you can program a new window to control EZSurvey. You can use these objects:

Besides creating a window to control EZSurvey. You can create new functions with JavaScript that perform tasks in EZSurvey. EZSurvey supports JSDB objects and standard JavaScript, as mentioned above.

<script name=scriptname context="form" menu="1:Function Name">
/* JavaScript code goes here */

Where scriptname is the name you want to give your script, Function Name is the name of the function as seen in the EZSurvey menu, and 1 is the number of the menu item where you want to put the Function Name.

File Edit Questions Database Publish Analysis Utilities Help
0 1 2 3 4 5 6 7

Other attributes in the script tag are:


To create a single choice input field, you would write this, where inputname is the name you want to give the input item:

To create another page, you would write this, where pagetwo is the name of the new page:

This is an example of how to call the form resource in the .js file. Where resourcename is the name of the resource.

See also...