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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard