When you open a form, you can add additional parameters to the URL of the form to prefill some form fields. URL parameters are added to the URL after a (?) and are separated from each other by with an ampersand (&). This gives the following pattern:

http://<host>//formcycle/form/alias/1/demo?<field1Name>=<field1Value>&<field2Name>=<field2Value>&...

Using URL parameters

You can use URL parameters to prefill form fields both when the form is opened for the first time as well as when a saved or submitted form is opened again. Please note that existing form field values are overwritten when URL parameters are used.

Examples

Example 1: Prefilling an input field

Example 1: Setup in the Xima® Formcycle Designer

Example 1: The form field named tfParameter was prefilled with the text value.

The form contains one input field named tfParameter. To prefill this field, use the following URL:

http://<host>/formcycle/form/alias/1/demo?tfParameter=Value

Example 2: Prefilling a select field

Example 2: Setup in the Xima® Formcycle Designer

Example 2: The selection field was prefilled with the first option. The value of the URL paramters must be 1, not Option 1.

You can preselect an option of a select field as well. Note that for select field you cannot use the displayed name as the value of the URL parameter. You need to use the value specified in the values column of the selection field in the Xima® Formcycle Designer.

The URL for prefilling the select field is as follows.

http://<host>/formcycle/form/alias/1/demo?selParameter=value

Prefilling form fields is possible only form fields not set to dynamic.

Tags:
Copyright 2000-2024