Just realized that with field set variables, you have to initialize the variable first. Then you can assign a value to 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";