function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ravi_SFDCRavi_SFDC 

Regarding Picklist

Hi All,

I have a picklist with values as X, Y and Z and 3 text fields

Scenario : I have selected picklist value as X and entered the values in the 3 text fields and successfully able to save the record.

Requirement : Whenever i change the picklist from the exisitng value all the text fields should be cleared. (referring to the above saved record where i selected X as value from picklist and asaved teh record, now i come back to same record and change the picklist value to Y, now all the 3 text fields should be cleared.

Your help would be really appreciated.

Regards

Ravi

 

chrischris
Hi,
You can use a record triggered flow for that (or an apex trigger as you wish), preferrably a before update (=fast field update in flow).
You can put as running criteria of your flow that the picklist field value is changed, then in the flow you just set to null the value of your 3 text fields for the record and that's it.