Hi,
I've made and app that has view and update functionality. Fields are readonly by default and when clicking a button "Edit" it will make them editable.
However I don't want some people to edit certain fields, so I've created 2 user groups (Contracts-View and Contracts-Update).
How can I check if a user is member of the update group?
I've tried this code. (if Edit mode is enabled AND user is member of group update or admin AND field2 is populated, the field should be editable)
{{ EditMode.value == false | (EditMode.value == true && (current_user.groups == 'Admin' || current_user.groups == 'Contracts-update') && txtCcode2.value == "")}}
This isn't working because the current_user.groups is an array of objects. How can I verify is the user is a member of a certain group?
Thanks.