

Forms › Initialize Form Variables
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:
- Click the Designer tab.
- In the Process Designer, open a process or create one.
- In the Operators palette Process Control group, drag an Assign User Task operator to your process.
- Double-click the Assign User Task operator to open its Properties palette.
- In the Properties palette:
- Expand User Task.
- In the Interaction Request Form field, click the lookup button to browse for a form. Click OK.
- Click the Form Data Initialization Code field to expand it.
- 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.
- For simple data types, enter:
Form.myTextField='welcome'.
- If the simple field is inside a ValueMap or field set, enter:
Form.value_map= newValueMap();
Form.valuemap.myTextField="welcome";
- If the simple field is inside a complex value map in a valueMap, enter:
Form.value_map.value_map_nested= newValueMap();
Form.value_map.value_map_nested.text_field_nested="test";
- In the Form Data Initialization Code window, click OK.
Copyright © 2014 CA.
All rights reserved.
 
|
|