Managing form states protects data integrity by defining whether a form is read-only or editable after the initial submission. The elc_mode attribute requires one of the four allowed values defined below:
| elc_mode value | Form fields | Submit button (initial) | On field change |
|---|---|---|---|
| disabled | Read-only | Hidden | — |
| hide | Hidden | Hidden | — |
| submit_disabled | Editable | Visible, disabled | Enabled |
| submit_hide | Editable | Hidden | Shown |
Evaluating these modes allows for specific user experiences:
- submit_hide maintains a clean interface by keeping the button Hidden until the user modifies a value.
- submit_disabled keeps the button Visible, disabled until a change occurs, providing a visual cue that the form is Editable.
While elc_mode manages the form state, other attributes determine how the system retrieves data.