Hide a button from UI Page dynamic - based on role - HOW?

Martin Ivanov
Giga Sage
Giga Sage

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.

find_real_file.png

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

1 ACCEPTED SOLUTION

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

View solution in original post

6 REPLIES 6

Hello, I was not able to change the parameter from the place of calling as you advised. Instead, I've implemented the requiremet int the ui page, using some script to calculate the parameter in a j evaluate tag.


Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Martin Ivanov
ServiceNow MVP 2023, 2024

do you care to share when the solution was?