cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nileshg
New Member

Radio button - required field validation

Hi,

I've a radio button with "Yes" and "No" option tied to s SharePoint List Yes/No column, that I want to make required and explicitly clicked by the user. I can blank out the default value when the form is loaded for the first time to create a new list item, but even when the field is required, user can submit the form without making a selection (with default value going as "No"). So how do force the user to explicitly select a "Yes" or a "No"?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @nileshg,

 

You cannot achieve this directly by setting things on the Radio button. But I think you can indirectly achieve this by setting below formula in the Visible property of the submit button:

If(!IsBlank(Radio1.Selected.Value),true,false)

In this way, only when option is selected in Radio, the submit button could be seen and selected.

 

Regards,

Mona

Community Support Team _ Mona Li
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

I think you will have to make it a drop down. Yes/No only has two possible value true or false. If you want a 3rd (not selected) you are going to have to use a dropdown instead. 

Shane - Microsoft MVP, YouTube, and PowerApps Consulting for when you are in a bind to get this fixed quickly. And finally we now have PowerApps Training
v-monli-msft
Community Support
Community Support

Hi @nileshg,

 

You cannot achieve this directly by setting things on the Radio button. But I think you can indirectly achieve this by setting below formula in the Visible property of the submit button:

If(!IsBlank(Radio1.Selected.Value),true,false)

In this way, only when option is selected in Radio, the submit button could be seen and selected.

 

Regards,

Mona

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

Thanks,

This is what I was looking for, If Radio Button is not Selected then Submit Button should be disabled or Vice Versa.

I have five Radio Buttons & each have three Options & I need to enable Submit Button only when all of these Radio button get Selected(either option in it). 

See....ScreenShot.png

 Via using this on DisplayMode=

If(And(!IsBlank(Ans1.Selected.Value),!IsBlank(Ans2.Selected.Value),!IsBlank(Ans3.Selected.Value),!IsBlank(Ans4.Selected.Value),!IsBlank(Ans5.Selected.Value)),DisplayMode.Edit,DisplayMode.Disabled)

I got the Answer !!!!

ScreenShot2.png

Submit Button is active only If all radio buttons are Selected.

Many Thanks

 

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,620)