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

Disabled mode glitch

Hi, 

 

So I have a form and on the save button I have this formula to disable to the save button until all fields are filled in (there is a reason why I am not just using mandatory fields). 

 

So it works mint, here is an example: 

 

In the DisplayMode property

 

If(
Dropdown5.Selected.Result || Dropdown3.Selected.Result || Dropdown4.Selected.Result || IsBlank(EmailSelector.SelectedItems),
Disabled,
Edit
)

 

It works fine when you have a new form, however, if a user enters an email address into the EmailSelector field and then removes the email address, the save button doesn't disable...therefore a user can then submit the form and it won't work. 

 

Any support would be nice. 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi eka24, 

 

Yeah didn't work. After some troubleshooting, I think I found a solution. This works (amendments in blue)

 

 

Old

If(
Dropdown5.Selected.Result || Dropdown3.Selected.Result || Dropdown4.Selected.Result || IsBlank(EmailSelector.SelectedItems),
Disabled,Edit)

 

New

If(
Dropdown5.Selected.Result || Dropdown3.Selected.Result || Dropdown4.Selected.Result || IsBlank(EmailSelector.Selected.DisplayName),
Disabled,Edit)

 

Thanks,

Harry

View solution in original post

2 REPLIES 2
Super User III
Super User III

Have you tried And instead of Or

If(
Dropdown5.Selected.Result && Dropdown3.Selected.Result && Dropdown4.Selected.Result && IsBlank(EmailSelector.SelectedItems),
Disabled,Edit)

 

I also suggest you isolate IsBlank(EmailSelector.SelectedItems) on a New button to check if that is the Problem because that part of the formula looks fine if it a COMBOBOX.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Hi eka24, 

 

Yeah didn't work. After some troubleshooting, I think I found a solution. This works (amendments in blue)

 

 

Old

If(
Dropdown5.Selected.Result || Dropdown3.Selected.Result || Dropdown4.Selected.Result || IsBlank(EmailSelector.SelectedItems),
Disabled,Edit)

 

New

If(
Dropdown5.Selected.Result || Dropdown3.Selected.Result || Dropdown4.Selected.Result || IsBlank(EmailSelector.Selected.DisplayName),
Disabled,Edit)

 

Thanks,

Harry

View solution in original post

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (59,803)