How to make a table cell read-only
Cells in a table can be enabled, required, or read-only based on the rules of a condition. This procedure explains how to make a cell in a table read-only. Read-only cells mean that they are not editable, but data still defaults into the field. Let's use a dynamic table to make a cell read-only. In this example, we are going to display the next scheduled date for an inspection.
- 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. The table has two columns.
- Click
(Edit) to open the Edit Dynamic Table window. In the Label field, enter Inspection, then click OK.
- Back in the Form Designer, enter Inspection Date in the Column 1 Label field and select Date as the field type.
- Enter Next Inspection Date in the Column 2 Label field and select Date as the field type.
- Click
(Edit) for the Date field type to open the Edit Date window. Toggle the Use Default Value option on and mark the Calculate Default Date option.
- Select Inspection_Inspection_Date as the Starting Date, mark Add, then enter User_Defined Value as the Value type and enter 365 as the user-defined value.
- Click the Cell Condition tab.
- From the Conditional applies to field, select Read-Only. Then add the conditional rule by clicking +. Select Inspection_Inspection_Date as the Field and is equal to as the Operator, Pre-Defined Value as the value then Submit Date as the Date Value.
- Click OK to close the Edit Date window.
- Click
to save the form.
- Now on the device, when a user enters an inspection date, the schedule new inspection date is calculated and displays as read-only.