cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Helper I
Helper I

Re: Disabled mode glitch

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
Highlighted
Super User
Super User

Re: Disabled mode glitch

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.

Highlighted
Helper I
Helper I

Re: Disabled mode glitch

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
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (3,640)