Restrict selecting yourself as approver in catalog item

Alex Mikesell
Tera Contributor

I have a requirement to not allow a submitter of a catalog item to select themselves as approver in a variety of forms(all utilizing the same variable set with the Approver reference field). My thought was to use a reference qualifier but it doens't seem like I can use a simple qualifier in this case. Can anyone assist with a best practice here?

1 ACCEPTED SOLUTION

Slava Savitsky
Giga Sage

You can achieve the desired result by using the following simple reference qualifier:

Sys ID – is not – javascript:gs.getUserID()

 

SlavaSavitsky_0-1718839915275.png

 

On a side note, it is usually not a good idea to let users select an approver. A leading practice is to make your approval process data-driven whereby the system determines the appropriate approver based on the available foundation data.

View solution in original post

2 REPLIES 2

Slava Savitsky
Giga Sage

You can achieve the desired result by using the following simple reference qualifier:

Sys ID – is not – javascript:gs.getUserID()

 

SlavaSavitsky_0-1718839915275.png

 

On a side note, it is usually not a good idea to let users select an approver. A leading practice is to make your approval process data-driven whereby the system determines the appropriate approver based on the available foundation data.

Thanks I knew it had to be a simple one liner somewhere. I agree but we're working with incomplete/bad data so once there is a good source of truth we can adopt those practices.