Right-click Forms in the Project Explorer, click
New, and click
Form. Alternatively, on the
File menu, click
New > Other to open the
New dialog box. Expand
TIBCO Forms by clicking the plus icon, and click
Form.
In the properties tab of the option list or radio button Properties View, create Label Array and
Value Array Choice Bindings. Note that if different parameters are selected for
Values and
Labels, you must ensure that the number of items in both the arrays are equal.
For example a value of parameter ssn, say,
888-78-9898, can be captured in three text fields. First, a text control named
ssn_part1 takes input for the first part,
888.
Second, a text control called ssn_part2 takes input for the second part,
7. Finally, a text control called
ssn_part3 takes input for the last part
9898.
This can be achieved by providing a scriptlet that returns different parts of the parameter value. In this example the three expressions would be p.ssn.substring(0,3),
p.ssn.substring(5,7),
p.ssn.substring(8,12). Each of these scripts would be provided in their own computation actions within a rule that fires when the underlying parameter is updated.