How to clear field that is displayed only if a value in another field is selected

I have 2 fields:

  1. Violation Present? (Yes/No)
  2. Violation Details (Text)

The Violation Details field is set to be shown if and required if Violation Present = TRUE.
The user selects Violation Present = TRUE, then enters a value for the Violation Details.
If they then change their mind and set Violation Present = False, the Violation Details is immediately hidden. However, the value they entered into the Violation Details still gets saved with the record. How can I clear the value from the Violation Details when the user changes the other field from TRUE to FALSE or anytime the field gets hidden?

0 5 1,266
5 REPLIES 5
Top Labels in this Space