Hi Everyone,
I have a requirement where i need to disable the button for particular user.
Discussion posts and replies are publicly visible
try this
{ a!buttonArrayLayout( buttons: { a!buttonWidget( label: "Button", style: "NORMAL", /*for specific user*/ disabled: if("restrictedUSer@appian.com"=loggedInUser(),true,false) /*for specific group*/ disabled: if(a!isUserMemberOfGroup(loggedInUser(),"yourrestrictedGroup"),true,false) ) }, align: "START" ) }
You can use the showwhen functtionality with isuserMemberofGroup function to hide the components.