webform drupal 8 view only field
- webform drupal 8 view only field
- read only
This is a simple checkbox in the webform UI:
- Read only, to be seen greyed out but also submitted.
- , to be ignored on submit.
Note that neither of these enforces the read only aspect on a code level, so do not use this for anything that needs to be securely locked down. Visitors can manipulate the DOM (as through browser tools) and change the “read only” value.
If building your webform element programatically, as for any form element, the