We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Validation on two reference field

Not applicable

Hi Team ,

Hi Team,

 

I have one requirement for my project: there is a record producer with two fields, 'Select Primary Approver' and 'Select Secondary Approver.' Both fields are reference fields that refer to the sys_user table. The requirement is that if I select a user, for example, Abel Tuter, in the 'Select Primary Approver' field, I do not want that user to be available in the 'Select Secondary Approver' field."

 

image (1).png

6 REPLIES 6

Sumanth16
Mega Patron

Hi @Community Alums ,

 

This is how you should configure your reference qualifier on the second reference field.

javascript:'sys_id!='+current.variables.requested_by(replace with first variable name);

If you find it helpful, please mark my answer as correct so that it can useful to others.

 

Thanks & Regards,
Sumanth Meda

 

Is this the same answer I provided @Sumanth16


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
5x ServiceNow MVP