cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amydixanne
Helper I
Helper I

Disabling submit button

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

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

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.

 

 

View solution in original post

2 REPLIES 2
timl
Super User
Super User

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.

 

 

View solution in original post

thank you, that works brilliantly!!! 

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,578)