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 / Disabling submit button
Power Apps
Answered

Disabling submit button

(0) ShareShare
ReportReport
Posted on by 43

Okay, so I have just had an idea but I have no idea how to execute.

 

I have a submit button on my form that has a patch() function as I am patching a person/group to a Sharepoint List which Submit() won't do.

 

My idea is, is to have the "Save" button disabled until the required fields are filled in. Does anyone have any ideas on how to do this?

 

Thanks!!

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    Hi @amydixanne

    One way to do this is to set the DisplayMode property of your button like so:

     

    If(IsBlank(FirstnameTextbox.Text) || IsBlank(SurnameTextbox.Text),
     DisplayMode.Disabled,
     DisplayMode.Edit
    )

    In this example, a user would need to enter text into the Firstname and Surname textboxes to enable the button.

     

     

  • amydixanne Profile Picture
    43 on at

    thank you, that works brilliantly!!! 

  • jimbobuk Profile Picture
    21 on at

    Might be a little late but for those who find this post, there is an easier way!

    @amydixanne in case you are interested, 

    Set submit button 'Display mode' to

    If(formName.Valid,DisplayMode.Edit,Disabled)

     

  • martinoau Profile Picture
    43 on at

    Thank u so much!

  • jebalert Profile Picture
    Microsoft Employee on at

    On the DisplayMode property of the submit button you could do the following:

     

     

    If(!IsBlank(DataCardValue1.Selected.Value) && !IsBlank(DataCardValue2.Selected.Value) && !IsBlank(DataCardValue3.Selected.Value),DisplayMode.Edit,DisplayMode.Disabled)

     

     

     

    Note that the above works for required dropdowns. If you had the need for three dropdowns to be populated and one text field it would look like this (note the DataCardValue4 to identify the differences).

     

     

     

    If(!IsBlank(DataCardValue1.Selected.Value) && !IsBlank(DataCardValue2.Selected.Value) && !IsBlank(DataCardValue3.Selected.Value) && !IsBlank(DataCardValue4.Text),DisplayMode.Edit,DisplayMode.Disabled)

     

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard