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
Hit23Hit23 

is it possible through validation rule?

Hello,

 

I have one picklist field on Account called 'Area'. Now there is also one object called quality in relatedlist of account.

In Quality object account name field as a look up field. Now i want to display a error message on Account, If Area = Colorado then that account can not create record for Quality object through new button on relatedlist.

 

I already insert lookup field(Account name) filter critearia on Quality. I can see message do not match critearia on Quality object.

But i want to see error message on account itself when user try to create a record for quality object through new button on related list.

 

Please advice me on that!

 

Thanks,

Hit 

 

 

 

Steve :-/Steve :-/

What relationship do the Account and Quality object have to each other?  Is it Master-Detail?

Hit23Hit23

Hi,

 

there is lookup relationship between Quality and Account object.

 

Thannks,

Hitendra

Steve :-/Steve :-/

Would it be feasible to change it from Lookup to M-D?  If you can, then you could create a Roll-Up Summary field that counts the number of Quality records and add a VR that gives an error if the Account.Area = Colorado and the Quaility_Count > 0

Steve :-/Steve :-/

Are you all set or do you still need help with this?

Steve :-/Steve :-/

are you all set  or do you still need help with this?

Steve :-/Steve :-/

Are you all set with this or do you still need help?