Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Quik! Forms Viewer can be modified with custom javascripts to enable features that aren't standard within the form. For example, if you want the form viewer to automatically scroll to a page within the form package based on the user checking a specific checkbox, you could write javascript (perhaps leveraging JQuery) to perform an action after the checkbox is clicked.

Adding Custom Javascripts

A unique feature of the Quik! Form Engine is the ability to add custom javascripts to the forms and extend your own customized functionality. For example, if you want to validate a field or cause events to fire when certain form fields are interacted with you could include a javascript file and set a javascript action to run. Set the CustomJavaFileIncludePath and CustomJavaScript properties.

Understanding Form Elements

...

  • The form instance tag for FormID = 2 may appear as follows:

<input type="hidden" id="FormID1" name="FormID-Instance.1" value="2" />

  • The form instance tag for FormID = 449 may appear as follows:

<input type="hidden" id="FormID2" name="FormID-Instance.2" value="449" />

  • The form instance tag for FormID = 2, copy number 1, may appear as follows:

<input type="hidden" id="FormID3" name="FormID-Instance.3" value="2-1" />

 
The number in the field name (e.g. the "1" in "FormID-Instance.1") is the counter of the FormID fields being added to the document and the "value" attribute is the actual FormID number (e.g. the value of "FormID-Instance.1" is "2"). If the FormID is a duplicate form then the value will have the FormID with a hyphen and the form instance number (e.g. "FormID-Instance.3" value = "2-1").

...

A page is identified within the Quik! Form Viewer as "FID" with the form ID number and "p" with the page number: FID12p2

 FID12p2 = FormID 12, page 2

Fields

Each field is named according to the Quik! Field Definition. To call a field by name within javascript use the field name. If there are multiple copies of the same form then the form's instance number is added to the field name (e.g. "1own.FName", "1own.FName-1").