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 / Disable button if Form...
Power Apps
Answered

Disable button if Form fields are completed

(0) ShareShare
ReportReport
Posted on by 51

Dear all,

 

I'm trying to set a submit button to be used only if the edit form has been fulfilled.

I set the DisplayMode of the button to this formula:

If( IsBlank('IMS_Skills&Experience_5'.Selected.Value) || IsBlank(IMS_Knowledge_5.Selected.Value)), DisplayMode.Disable, DisplayMode.Edit)

 

The Form has to many datacards, so when I set the above formula including 128 dropdowns to "IsBlank()", the app goes really slow, how can I set a variable to have the "if" and the all "IsBlank()" for each datacard, so I can use it in the DisplayMode of the button?

or any other solution that I can use.

 

Thanks 🙂

Categories:
  • Woxax Profile Picture
    on at

    Hi,

    There is a property form.valid - it checks if all required cards in form are filled.

    This might be of use in this situation - keep in mind that if you alter Update property of datacard, form.valid may not work properly

  • Nat_SGRE Profile Picture
    51 on at

    Hi, 

    Thanks for the reply.

    I tried your proposal but I get another issue. I have a "save" button that it won't work if I set the datacard to Required.

    The other button is a "submit for review", which triggers a communication flow.

    So I want to disable the "submit" button if datacard fields are Blank and that the "save" button works all the time.

  • Verified answer
    Nat_SGRE Profile Picture
    51 on at

    Hi all,

    I have figure out a way to set the button to disable if all values if a form are blank.

    1. Within the Form I added a custom datacard

     

    2. Then I added a Label (Label1), in its Text property I added the if formula, but set the "true" to "blank" and the "false" to "completed":

    If( IsBlank('IMS_Skills&Experience_5'.Selected.Value) || IsBlank(IMS_Knowledge_5.Selected.Value)), "","completed")

     

    3. Going back to the button, on its DisplayMode property I enter the following formula:

    If(Label1 = "completed", DisplayMode.Edit, DisplayMode.Disable)

     

    With this way the App goes well and I avoid it to run slow

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 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard