cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Patron
Post Patron

Making text inputs mandatory to submit form

Hi,

 

I entered  "If(IsBlank(StandardEndorserName1E.Text) || IsBlank(DesignNumberE.Text),DisplayMode.Disabled,DisplayMode.Edit)"

for display mode of my submit button but I am getting an error. It's expecting a Boolean value. Any ideas on what I did wrong?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

@pnass001 

Your code looks fine.  Just remove the double quotes from either side and put it in the DisplayMode property of the button.

 

If(
    IsBlank(StandardEndorserName1E.Text) || IsBlank(DesignNumberE.Text),
    DisplayMode.Disabled,
    DisplayMode.Edit
)

 

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

2 REPLIES 2
Super User III
Super User III

@pnass001 

Your code looks fine.  Just remove the double quotes from either side and put it in the DisplayMode property of the button.

 

If(
    IsBlank(StandardEndorserName1E.Text) || IsBlank(DesignNumberE.Text),
    DisplayMode.Disabled,
    DisplayMode.Edit
)

 

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Community Support
Community Support

Hi@pnass001,

 

Do you want your form to stay display mode if either of  StandardEndorserName or DesignNumber is not edited?

I have a test on my side which goes well.

0505-03.png

 

Please make sure that you set the Save icon DisplayMode as the above formula. And check your datasource, whether it has been updated without refresh in PowerApps.

More screenshots about the error will be appreciated.

 

Best Regards,

Qi Qiao

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.

Top Solution Authors
Top Kudoed Authors
Users online (92,754)