I have put together a webform for signing in guests to a Nightshelter. Some guests are banned from time to time, and when a known guest tries to get signed in I want to show if he/she is subject to a ban. Simple enough, but I can't figure out how to do this without exposing the yes/no banned field as updateable. I can use conditionals but still end up showing the field as updateable. Is it possible to show a field as read only in a webform? Or any other suggestions?
You could use webform conditional rules to display or hide a message based on the ban.
- Add the "is banned" custom field to your webform
- Update it from the webform tab to be type "hidden" (but not secure value)
- Create a "Markup" field, and enter your warning message
- Add a conditional rule to show/hide the markup based on the "is banned" value.
For select option components in a Webform, Disabled is not an option.
For something like what you are trying to do, I might be inclined to add a contextual block view that boldly states that they are not allowed in.
I also might try to set up a rule that checks that field and prints out a warning.