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

Bypass Field Required if value is No

I have some fields that are required when they select "Yes" on the form. But would like to bypass the required fields when the users select "No"

 

Hope the community understand the question.

 

Thank you in advance.

 

Capture.PNG

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Bypass Field Required if value is No

Hi @oappdev ,

Do you want to control the Required/Mandatory property of the Text Input field based on the Toggle control in your Edit form?

 

Please consider take a try with the following workaround:

Set the Required property of the Text Input field data card in your Edit form to following:

If(
   Toggle.Value = true,
    true,
    false
)

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Advocate I
Advocate I

Re: Bypass Field Required if value is No

On the cards required property, you would change it to If(ToggleControl.Value = true, true,false)

 

"ToggleControl" is whatever the name of that field above is. 

Highlighted
Super User
Super User

Re: Bypass Field Required if value is No

@oappdev 

When I am creating forms I like to take the approach that the question will only appear if the user needs to answer it.  As an alternative to what @yshariff suggested, you could also use his formula in the Visible property of the question and set the Required property to False.

 

If(ToggleControl.Value = true, true,false)

 

Highlighted
Community Support
Community Support

Re: Bypass Field Required if value is No

Hi @oappdev ,

Do you want to control the Required/Mandatory property of the Text Input field based on the Toggle control in your Edit form?

 

Please consider take a try with the following workaround:

Set the Required property of the Text Input field data card in your Edit form to following:

If(
   Toggle.Value = true,
    true,
    false
)

Please consider take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

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

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,939)