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
Jagadeesh24Jagadeesh24 

How to throw all the validation rules at a time for the Relatedlist having four fields

Hi,

 

How to throw all the validation rules at a time for the Relatedlist having four fields, each field having its own validation rule.

 

When the user selects No for a particular field value, he shout enter the reason in comments box if not it should throw a validation error as "If No, comments required".

 

Like this there four fields having No options, and all the four validation errors should display at a time.

 

Regards,

Jagadeesh.

goabhigogoabhigo

Create 4 different validation rules like- AND( ISPICKVAL( PickVal1__c, 'No'), ISBLANK(Comment1__c)).

 

That will throw error message at one if comments fields are not filled while field value is No.