Scenario: Need to show a dropdown only for administrator group members. How to check this condition and hide dropdown when logged in user is not an administrator?
As sample SAIL example/recipe would be great please?
Discussion posts and replies are publicly visible
anushas0002
You can do it like the below based on your use case,
/*To check if the loggedInUser is an Appian system administrator*/ a!dropdownField( showWhen: isusersystemadministrator( loggedInUser() ) /* OTHER PARAMETERS*/ ) /*To check if the loggedInUser() is a member of any Application group*/ a!dropdownField( showWhen: isusermemberofgroup( loggedInUser(), 123 /* group ID */ ) /* OTHER PARAMETERS*/ )
Thanks,
Raghu
Thank You Krishna and Raghu both!