How to enable a cell in a table
Cells in a table can be enabled, required, or read-only based on the rules of a condition. This procedure explains how to enable a cell in a table. For details about how to require a cell in a table, see Required Cells in a Table.
Let's say you have a dynamic table on a form for tracking support calls. This dynamic table contains the date of the call, the call type, call description and depending on the call type, an email or phone number. The following procedure provides the steps to make a table cell enabled based on this example:
- On the form, from the Actions/Container menu on the right side of the Forms Designer, drag Dynamic Table onto the form.
- The dynamic table is added to the form. Next to the Column 1 Label, click , then Insert Column. Insert additional columns so the dynamic table has a total of 5 columns.
- Click (Edit) to open the Edit Dynamic Table window. In the Label field, enter Support Log, then click OK.
- Back in the Form Designer, enter Date of Call in the Column 1 Label field and select Date/Time Stamp as the field type.
- Enter Call Type in the Column 2 Label field and select Radio as the field type. Click
(Edit) to open the Edit Radio window. Enter Email, Phone and Other as the options, then click OK. - Enter Email Address in the Column 3 Label field and select Text as the field type.
- Enter Phone Number in the Column 4 Label field and select Text as the field type.
- Enter Call Description in the Column 5 Label field and select Long Text as the field type.
- Click to save your changes to the form.
- Now let's make the Email Address cell of the dynamic table enabled when the call type is Email. Click (Edit) for the Text field type to open the Edit Text window.
- Click the Cell Condition tab.
- From the Conditional applies to field, select Enabling Cell. Then add the conditional rule by clicking +. Select Support_Log_Call_Type as the Field and is equal to as the Operator, then Email as the value.
- Click OK to close the Edit Text window.
- Now let's make the Phone Number cell of the dynamic table enabled when the call type is Phone. Click (Edit) for the Text field type to open the Edit Text window.
- Click the Cell Condition tab.
- From the Conditional applies to field, select Enabling Cell. Then add the conditional rule by clicking +. Select Support_Log_Call_Type as the Field and is equal to as the Operator, then Phone as the value.
- Click OK to close the Edit Text window.
- Click to save the form.
- Now on the device, when a user selects a call type (in this example, Phone) the other call type's supporting field will be disabled (in this example, Email Address field).