Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Display button based on user department and user role in workspace

PavanAkola
Tera Contributor

I need to display this Assigned to me   button only to the users who has role ITIL and he should be from department sales .. how can i do that in ui builder 

3 REPLIES 3

Community Alums
Not applicable

@PavanAkola 

Go to the page where you want to display the button in UI Builder.

Drag a Button widget onto the page from the widget catalog.

Select the button widget to open its properties.

Go to the Visibility section in the properties panel.Under Conditions, add a new condition to determine when to show the button.

Yes which condition should I mention to match my requirement 

 

Should I use data resources or client script or client state parameters 

 

Or combination of three... Please give me detail steps as I was new to ui builder 

I used data resources to get actual display value of users Department and with client script using if condition I'm returning true or false

 

How can I set value of that to my client state parameters dynamically