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 Fields

(0) ShareShare
ReportReport
Posted on by 228

Scenario:

I have one field that I need to make required if two out of three options on a radio button is selected. I am using the following code: Radio2_1.Selected.Value="Tax Entity" or Tax Individual"

 

There is no error message but the field is not appearing as Required. It works fine if I only have one option in the code. field to be required if either of those options are selected?

 

Thanks in advance.

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @ShondaT

    In the required property of the card:

    Radio2_1.Selected.Value="Tax Entity" ||  Radio2_1.Selected.Value= "Individual"

  • ShondaT Profile Picture
    228 on at

    @Drrickryp It still only shows as required on the first part of the code. It seems to ignore the 2nd part. 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @ShondaT

    Please post the screenshot of the radio control. 

  • ShondaT Profile Picture
    228 on at

    @Drrickryp 

     

    ShondaT_0-1679667914396.png

     

    This is how it shows when I press Tax Individual

    ShondaT_1-1679668037715.png

     

     

     

    This is how it shows when I press Tax Entity

    ShondaT_2-1679668063620.png

     

    Both instances should be required. 

     

    This is what the code looks like now: (Radio2_1.Selected.Value="Tax Individual") || (Radio2_1.Selected.Value="Tax Entity")

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @ShondaT

    As a test, try

    Radio2_1.Selected.Value<> "Assurance"

    Also remove the parentheses from your current formula and see if it does the same thing. They were not included iny suggestion. 

  • ShondaT Profile Picture
    228 on at

    @Drrickryp I initially tried it without the parenthesis and then with them and both ways rendered the same results. Your new suggestion is rendering the same. This is so odd! 😞

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @ShondaT 

    I can't explain it either.  I tried a sample and it works fine for me.  If you change the order what does it do?

    Radio2_1.Selected.Value= "Tax Individual" || Radio2_1.Selected.Value="Tax Entity" 

  • ShondaT Profile Picture
    228 on at

    @Drrickryp  It's actually working now. I'm not sure what's different but it started working all of a sudden. Thanks so much for the help!

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard