Skip to main content
May 17, 2025
Question

Automatically hide fields

  • May 17, 2025
  • 9 replies
  • 0 views

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

    9 replies

    stefanhelzle0001
    May 17, 2025

    What exactly is your question?

    May 17, 2025

    Hi [mention:a11f77a729fb4db2af76b09948583328:e9ed411860ed4f2ba0265705b8793d05] ,
     
    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?

    stefanhelzle0001
    May 17, 2025

    You already mentioned the showWhen parameter. So, what exactly are you looking for? And you have an Appian Senior Certification!

    davidj137213
    May 17, 2025

    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

    May 17, 2025

    Hi [mention:d173d3118db546878c1f717bfba87080:e9ed411860ed4f2ba0265705b8793d05] ,

    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...

    davidj137213
    May 17, 2025

    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
    )

    mathieud0001
    May 17, 2025

    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).

    harshas2775
    May 19, 2025

    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.