I have two elements, a text input field where users enter their birth year, and a switch toggle beneath it.
The text input field has an action that calculates the users age based on the value they put, it does ("current year" - "user's birth year"), and puts the answer as an integer in a field name called "age".
Now, I want to make a simple functionality, where if the age is less than 18, the switch toggle should be automatically enabled and locked, so users can't toggle it off unless they change the birth year.
How do I do that?