Validation on two reference field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2024 07:35 AM
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."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024 12:31 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2024 12:34 PM
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