Previous Topic: Create a Simple Form with Basic FunctionsNext Topic: Resources


Initialize Form Variables

After designing an interaction request form, you can set it to a specific Assign User Task operator in a process. You can also add code to initialize form fields at runtime.

Follow these steps:

  1. Click the Designer tab.
  2. In the Process Designer, open a process or create one.
  3. In the Operators palette Process Control group, drag an Assign User Task operator to your process.
  4. Double-click the Assign User Task operator to open its Properties palette.
  5. In the Properties palette:
    1. Expand User Task.
    2. In the Interaction Request Form field, click the lookup button to browse for a form. Click OK.
    3. Click the Form Data Initialization Code field to expand it.
  6. In the Form Data Initialization Code window, initialize any form variables. For the following examples, myTextField is the _id of the form element that you want to initialize.
  7. In the Form Data Initialization Code window, click OK.