Symptoms
How to show/hide/validate controls based on content of another control.
Diagnoses
Possible with the steps below.
Resolution
- Via the Form/View Layout tab Properties window (bottom right), check the 'Visible' property on the controls that should start invisible.
- Add a 'When a control on the View/Form raises an event' event, targeting the source control and its 'Changed' method.
- Add a 'a control contains a specific value' condition, targeting the source control and setting which value you're looking for.
- Add a 'Set a control's properties' action, targeting a hidden control, setting it's Hidden field to 'Yes' or 'No' as appropriate.
- Repeat the above steps for all required source control content conditions and hiding actions.
- In your validation condition, check 'Do not validate hidden, disabled, or read-only controls, Views and tabs.'