Advertising banner:
 
 
 LDR1046
 


Performing multiple actions on one field
You can use field control to perform two compatible actions on the same field (for example, set a numeric field to a particular number and disable it so users can't change the number).
The syntax for performing two actions is
value/field ID:action 1:action 2
This example:
1/1003:10:D
means that when the value of the controlling field is 1 (for example, a checkbox is selected), numeric field 1003 will be set to 10 and disabled (D).



Controlling multiple fields
You can make a field control the behavior of multiple fields. All controlled fields are included in the same control statement. The actions FirstClass will take in all controlled fields when a particular value is chosen in the controlling field are separated by hyphens; values are separated by semicolons.


Syntax
Variable
Meaning
value 1/field ID 1:action 1-field ID 2:action 2;value 2/field ID 3:action 3-field ID 4:action 4
value 1
The state of a checkbox, specified number in a numeric field, or radio button or list entry value.
field ID 1
The ID of the first field to be controlled when the user selects value 1.
action 1
The action FirstClass will take in field ID 1 when the user selects value 1.
field ID 2
The ID of the next field to be controlled when the user selects value 1.
action 2
The action FirstClass will take in field ID 2 when the user selects value 1.
value 2
Another checkbox state, number, or radio button or list entry value.
field ID 3
The ID of the first field to be controlled when the user selects value 2.
action 3
The action FirstClass will take in field ID 3 when the user selects value 2.
field ID 4
The ID of the next field to be controlled when the user selects value 2.
action 4
The action FirstClass will take in field ID 4 when the user selects value 2.

In the example
0/1003:1-1021:2;1/1003:0-1021:1
       0/1003:1-1021:2 means that when the controlling checkbox is cleared, checkbox 1003 is selected (1) and radio button 2 of radio group 1021 is selected
       1/1003:0-1021:1 means that when the controlling checkbox is selected, checkbox 1003 is cleared (0) and radio button 1 of radio group 1021 is selected.



Using field control for a range of values
If you want to make a range of values (such as the numbers 1 through 10) result in the same action in the controlled field, use the following syntax:
value-value/field ID:action
This example:
1-10/2010:H
means that when the user specifies any number from 1 through 10, field 2010 will be hidden (H).


hirosue Shino Web Site