I am having one form ie. customer form, I need to hide the 2 fields like dob and email id from basic user automatically , like we can keep showwhen condition in the form itself but it is manual process , need to do automatically .. is there any way to do this? in appian
Discussion posts and replies are publicly visible
What exactly is your question?
You should use a variable for checking if the controls must be shown or not. And use it for display or not the control using showhen property
Hi David Jimenez ,if we configure like this, then it is a manual process...I need to do it automatically via records , is there any way to do this...
Hi Stefan Helzle , I have a customer form with fields for name, address, date of birth, and email. When a customer support executive fills out this form, I want the date of birth and email fields to be automatically hidden. How can I achieve this?
It's not a manual process... after integration execution, check response.... If contains any error, set that variable to false, otherwise, set it to true.
Place that variable in showhen property... and it will work without any manual interaction...
For example
showWhen: or( local!selectedDate=today(), local!selectedDate=today()+5 )
You already mentioned the showWhen parameter. So, what exactly are you looking for? And you have an Appian Senior Certification!
Can't you just check if the user is an admin or not in the showWhen?
You can make use of the property 'userTypeId' in the 'user' function to differentiate the Basic User and System Admin (The output will be 1 for System Admin and 0 for Basic User).
Not sure what do you mean by showwhen is manual process! If you configure showwhen using user groups like if user is in basic user it evaluates to false and true otherwise then system can dynamically and automatically handle this.
What makes you say it's "a manual process"? The ShowWhen parameter is expressionable. Meaning, you can use literally any evaluation logic in the entire Appian library of expression functions and associated expression logic, to evaluate the showWhen for any or every given field.
In your case it seems like you would merely need to check the current user's group membership. Surely you know how you would check a user's group membership if you've taken and passed the Senior Certification exam...?