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

Double validation on Submit

Greetings and Happy New Year-ish!

I have what I think should be a simple request, but I can't seem to figure it out. Ha.

 

I have a request form and I would like to have 2 things validated before the submit button displays. I have the first one, but I guess I can't figure out how to combine these two:

 

1. I have a toggle to accept the terms. This works fine by itself.

If(TermsButton.Value = false, DisplayMode.Disabled,DisplayMode.Edit)

 

2. I would like to add, If Checkbox1 = false then the same for display mode(s).

 

So in order for the submit button to display, then both Terms Button and Checkbox should be true.

 

I hope I explained that ok.

 

Thanks for any assistance. 

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

Hi @jjohnson 

 

Can you try to update the expression as:

 

If(TermsButton.Value && CheckBox1.Value, DisplayMode.Edit,DisplayMode.Disabled)

 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

4 REPLIES 4
yashag2255
Dual Super User II
Dual Super User II

Hi @jjohnson 

 

Can you try to update the expression as:

 

If(TermsButton.Value && CheckBox1.Value, DisplayMode.Edit,DisplayMode.Disabled)

 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

gabibalaban
Super User II
Super User II

Hi @jjohnson ,

 

Please try:

If(TermsButton.Value && Checkbox1.Value, DisplayMode.Edit, DisplayMode.Disabled)

 

So the button will be disabled until the toggle button will be ON (true) and the Checkbox1 will be checked (true).

 

Hope it helps !

Thank you! That worked perfectly. 

yashag2255
Dual Super User II
Dual Super User II

@jjohnson 

 

I am glad that your issue is resolved. Please mark the thread as solved, so that it is useful for others as well.

 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,360)