Validation on two reference field

Community Alums
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
Kilo 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
2022-25 ServiceNow Community MVP