script help, need to remove role
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2023 02:23 PM
Hi everyone,
I have a catalog ui policy script that was working perfectly today and then got a new requirement. The previous requirement was that if a variable additional information was yes (after the initial submition of the request) then any user with role pm_user would be required to answer additional required variables after the initial submit of the request. Attached is a copy of the script and when to apply.
Today I was asked to still follow all the requirements above, but to make the variables required for ALL users and not just those with the role. I've tried many variations in my script to remove the role or add not but nothing is working. Any ideas or suggestions?
thanks in advance for any feedback you have!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2023 03:53 PM
Hi,
have you tried getting rid of the "if" line in your screenshot? So it looks like the code in the "Execute if false", but using 'true'. Comment out the "if()" and the closing "}" in the "Executes if true" script above and test. Maybe you need to remove the 'Catalog Conditions' if that aspect no longer applies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2023 07:37 PM
The catalog condition still applies. If the manager with pm role selects yes at additional information then the variables should be mandatory for the user who submitted the request. So instead of pm_users having the variables required I need a way to determine the variables required for the user that submitted the request AFTER the manager selects additional informaito is yes. Hope that clarifies things better.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2023 04:07 PM
Remove the script and use UI Actions which is lot easier. select all the variables needed to be mandatory on the form and RITM. click on new and add them.
Hope this is helpful.