Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • ShondaT Profile Picture
    228 on at
    Re: Required Fields

    @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!

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Required Fields

    @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
    Re: Required Fields

    @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
    Re: Required Fields

    @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
    Re: Required Fields

    @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
    Re: Required Fields

    @ShondaT

    Please post the screenshot of the radio control. 

  • ShondaT Profile Picture
    228 on at
    Re: Required Fields

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

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Required Fields

    @ShondaT

    In the required property of the card:

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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,708 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,030 Most Valuable Professional

Leaderboard