- 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 11:00 PM
Hi @Suyash Joshi current object refers to the current record , without current your condition will not evaluate correctly,
current.fieldname // refers field on the current record which user opens
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 11:03 PM
But when I run using current it is not execute and without It will generate the button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 11:10 PM
What @Harish KM has suggested that should work. Can u paste a snip of what u have added?
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 11:20 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2024 11:10 PM
Hi @Suyash Joshi what is the field name? and how are you testing it? Are you impersonating the user who is member of that group and also is he present in caller field?
Harish