web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

REQUIRED FIELD

(0) ShareShare
ReportReport
Posted on by 792

Hi Community 

 

I have on one of my apps a form where I have built in radio buttons I would like to make these a required field. I have set to true in the settings however upon submission of the form it fails. Any ideas im at a loss?

 

Kmayes_0-1601111841755.png

 

Categories:
  • eka24 Profile Picture
    20,925 on at

    On the OnSelect of your SubmitForm button, verify if the radio control has been selected as;

    If(Radio1.Selected.Value="",Notify("Fill the Radio selection"))

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Kmayes Profile Picture
    792 on at

    @eka24 

    When I submit a form i do so by using SubmitForm('Form Name'). The radio button updates the text data card value which is then hidden on the form. Would you be able to provide an example of how I would write this into what I already have?

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    If the radio control update a field on your form, Use this code on the submit button;

    If(IsBlank(Datacaradvalue1.Text),

    Notify("Fill the Radio selection"),SubmitForm('Form Name'))

     

    If the code is not clear to you, give a feedback. 

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Kmayes Profile Picture
    792 on at

    Morning @eka24 I have done some testing with the code provided. When submitting the form without the required element set to true on the card it passes through, however when I change to true it doesn't submit. Any idea? 

  • eka24 Profile Picture
    20,925 on at

    Please show the code. Also indicate whether you are using the radio directly in the formula or a textbox that picks from the radio button

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Kmayes Profile Picture
    792 on at

    @eka24 

     

    The code is If(IsBlank(DataCardValue257.Text),Notify("Fill the Radio selection"),SubmitForm('Form Name'))

     

    DataCardValue257 picks up the radio card selected which is a Yes or No button and fills DataCardValue257 which the written text from the radio button

     

     

  • eka24 Profile Picture
    20,925 on at

    I have made a test and it working. Can provide screen shots?

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Kmayes Profile Picture
    792 on at

    @eka24 

     

    This is the radio button that updates DataCardValue257 with Yes/ No, let me know if you need to view anything else in particular

     

     

    1.PNG2.PNG

  • eka24 Profile Picture
    20,925 on at

    Does the radio populate the Datacaradvalue?

    A screenshot of the formula in the Datacaradvalue257

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Kmayes Profile Picture
    792 on at

    @eka24 

     

    Yes that is correct the radio button updates the data card.

    The default of DataCardValue257 is Radio1.Selected.Value

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 337 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard