Select to view content in your preferred language

Widget Controller hide or disable based on certain role or group

83
1
12-05-2024 08:29 AM
Muhammad_AzhaziqBin_Mohd_Azlan
Regular Contributor

Hi,

Just curious is it possible for widget controller to hide or disable based on certain role or group programmatically?

0 Kudos
1 Reply
JeffreyThompson2
MVP Regular Contributor

You can use the props.user object to get the user information from the Portal. I have found this method to be unreliable in Developer Edition 1.14. It was supposedly fixed in 1.16, although I have not seen official confirmation or tested it. Once you have the Portal information, the easiest way to hide the Widget Controller would be to target it with CSS and use display: none.

https://community.esri.com/t5/arcgis-experience-builder-questions/portal-user-information-undefined-...

GIS Developer
City of Arlington, Texas