I need someone help me write a script for a listener to clear two custom fields based on selection from another field.
What's currently happening:
I have a single select field called Blocked with options Yes or No. If user selects Yes, then a single select field called Blocked Reason is required and free text field called Additional Text is also required.
When user selects No, the values in Blocked Reason and Additional Text are still there. They'd have to be manually reverted back to the default to remove the irrelevant data entry.
Where I need help with a script:
If user selects No, I want the listener to automatically clear the values for both the Blocked Reason and Additional Text anytime No is selected from the Blocked field.