- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 10:19 PM
Hello Everyone,
while creating a UI action I faced an issue with auto generated button when condition is false.
I want to select a caller if the caller is in 'openspace' group UI action button are visible but when I test it and run on other member it still display the button.
Script : u_caller == gs.getUser().isMemberOf('openspace')
Anyone help me on urgent basis.
Regards,
Suyash
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 11:33 PM
Hi @Suyash Joshi ,
If your requirement is to show button only when caller is member of 'Openspace' then you can use below in your Ui Action condition:
gs.getUser().getUserByID(current.caller_id).isMemberOf('Openspace')
Replace caller_id field by correct field name as per your requirement (eg. u_caller)
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 10:32 PM
Hi @Suyash Joshi ,
Try bu using current
current.u_caller == gs.getUser().isMemberOf('openspace');
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 10:41 PM
Your script wasn't run when using current.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 10:51 PM
Hi @Suyash Joshi your condition should look like this
(gs.getUserID() == current.u_caller) && (gs.getUser().isMemberOf('openspace')) // match loggedin user as caller and logged in user is member of grp
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 10:58 PM
Hello @Harish KM your script need some changes
(u_caller.gs.getUserID() == current.u_caller) && (u_caller.gs.getUser().isMemberOf('openspace'))
well it still display button if condition is false