web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Urgent: Help with Disp...
Power Apps
Unanswered

Urgent: Help with Display Mode of Save Button

(0) ShareShare
ReportReport
Posted on by 8

Hi,

 

I need some help with setting the display mode of a save button for a form I am using. I have a form which has a status field in and depending on what status is chosen I want certain fields in the form to become mandatory. I have a 7 options to choose from in my status column and each one has a combination of mandatory fields.

 

Anybody have any ideas on how I can accomplish this please?

 

Thanks

 

Abdullah

Categories:
  • Akser Profile Picture
    1,546 Moderator on at

    Hi @Abzyb,

     

    Did you consider storing that information (required fields per status) somewhere (e.g. a collection)? Once you do that, you can refer to it and determine the DisplayMode of your button. 

     

     

  • QuantmResonator Profile Picture
    47 on at

    Hi @Abzyb,

     

    You can create boolean variables for each field you need filled in,

     

    You can then check if these variable are true using an if statement in the button display. You can check multiple variables using the && operator

     

    Below is an example:

     

    If(
    varFieldEntered = true && (IsBlank(txtStatusField) = false),
    DisplayMode.Edit,
    DisplayMode.Disabled
    )

  • Abzyb Profile Picture
    8 on at

    Thanks for getting back to me. If I were to use variables where does the variable need to be set?

     

  • QuantmResonator Profile Picture
    47 on at

    You can set the variable in the OnChange property, this way when the field is changed you can check the field value and set the variable accordingly

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Abzyb

    II would use @QuantmResonator's suggestion but would use the variable in the Required property of the field card. That way the user will be informed of the problem and the submit button won't fire until the requirements are met. 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Abzyb

    II would use @QuantmResonator's suggestion but would use the variable in the Required property of the field cards. That way the user will be informed of the problem fields and the submit button won't fire until the requirements are met. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard