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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,426)