How to call system property in ui action condition field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 06:16 AM
We have a UI action field called "copy incident" in incident form, i want to visible only for 3 groups, so i created string property, and using that property in ui action condition field, but it is not working , anyone please help
#ui action #sys properties
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 10:16 AM
Hello @siva14 ,
I believe you have passed the sys_id of the group in the value field of the system property.
You can use the following script in the condition of the UI action:
gs.getUser().isMemberOf(gs.getProperty('glide.ui.copy_incident'))
I hope this resolves your issue.
Thank you.
Regards,
Abhijeet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 03:43 AM
Hi @Abhijeet_Pawar , i have already tried this, this is also not working, when i impersonate the group member, i didn't the see the UI action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 04:10 AM
Hello @siva14,
I used a system property in the UI action, and it's working well.
Your UI action isn't working because of the extra condition you added.
Thanks,
Abhijeet