Restrict "Requested By" User from Being Selected as Manual Approver on Change Form

Sriram34
Tera Contributor

Hi Team,

 

On the Change form, we have a Manual Approver field which is a List Collector. Currently, it is configured to allow selection of only active users who have the approver_user role.
 

We have an additional requirement to enhance this restriction:

  • The Requested By user (the person who is raising the change) should not be allowed to select themselves as a Manual Approver.

In other words, when a user raises a change request, they should be prevented from adding themselves in the Manual Approver field.

 

Could anyone suggest the best way to implement this restriction?

 

 

Sriram34_0-1780899461266.png

 

Thanks in advance

7 REPLIES 7

Tanushree Maiti
Tera Patron

Hi @Sriram34 

 

To restrict the Requested By user from selecting themselves in a List Collector Manual Approver field, update the field's Reference Qualifier to filter out the user.

 

Modify the field's properties using the following advanced reference qualifier:
javascript: "sys_id!=" + current.requested_by  //replace with your field name

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

BharatC
Mega Guru

Hello @Sriram34 

 


If the Manual Approver field references sys_user, you can use an Advanced Reference Qualifier to exclude the requester from the available selections.

Example:

javascript:'active=true^sys_id!=' + current.requested_by

This assumes the Change Request record contains a requested_by field and that the qualifier is being evaluated in a context where current is available.

If you already have a qualifier that restricts users to those with the approver_user role, simply append the exclusion condition:

...^sys_id!=<requested_by_user_sys_id>

Also consider adding a server-side Business Rule to prevent the requester from being added as a Manual Approver through imports, scripts, or other bypass methods.

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.

Regards,

Bharat chavan

Ankur Bawiskar
Tera Patron

@Sriram34 

something like this in the advance reference qualifier

javascript&colon; 'active=true^sys_idNOT IN' + current.requested_by.toString();

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar @BharatC @Tanushree Maiti ,

 

Thanks for the replies.

I tried using an Advanced Reference Qualifier as shown below, which helps restrict user selection. However, I’m still unable to prevent users from using the “Add Me” icon or selecting via Email Address.
 
Sriram34_0-1780904203332.png