Set text field value to null once it becomes hidden
We have a logic where the text field (Source_Category_Description_c ) becomes visible only if specific value (Other_Value) is selected from the dropdown list (Source_Category_c ) and hidden when the value is deselected.
Visibility code works as expected - as soon as Other_Value value is deselected, the text field Source_Category_Description_c becomes hidden:
Hidden expression: Source_Category_c != 'Other_Value';
Depends on: dropdown list Source_Category_c .
I want to use the same logic to set the text field value to null as soon as the field becomes hidden. Below is the Source_Category_c field trigger: