
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2022 08:29 AM
Hello,
I have a requirement to hide the Cancel button from the assessment UI page (assessment_take2).
This must be based on a role - e.g. 'xxx_admin'. If the user has it - show the button. Else - hide it.
I can find a variable which is determining wether the button must be hidden or not, but Jelly is one of my strenghts. Could you, please guide me how to set this variable based on the user, taking the assessment.
This will be highly appreciated!
Thanks!
Martin
Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 12:03 AM
I fugured it out, thanks!
Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2022 08:40 AM
Hello,
Where ever this page is getting called, you have the parameter sysparm_hide_cancel that you can set to true to hide it. Please set it there using that parameter.
If you still need assistance, please give more information as to where this is being called (UI Action or otherwise) and speak to your peers at Deloitte for quicker and more interactive assistance.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2022 11:38 PM
Hi Allen,
the UI page is called by a UI action (Take assessment), where the url is built. I tried to pass the 'sysparm_hide_cancel' to the url but it gets disregarded. Any Idea on how to proceed?
Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 12:03 AM
I fugured it out, thanks!
Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 05:51 AM
Hello
I see you've marked your own reply as Correct?
Did my reply above not guide you Correctly?
-Allen
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!