Condition is always on true

Suyash Joshi
Tera Contributor

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

1 ACCEPTED SOLUTION

Anil Lande
Kilo Patron

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)

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

17 REPLIES 17

Anil Lande
Kilo Patron

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)

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Hello @Anil Lande ,

Thank You so much actually I'm not getting the answer for 2 days thank you once again for your big help.
Regards,
Suyash

Glad to help 😊

Happy Learning!

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande