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 Platform Community / Forums / Power Apps / If Clause on radio but...
Power Apps
Unanswered

If Clause on radio button with or condition

(0) ShareShare
ReportReport
Posted on by 14

I am trying to build a covid screening form for my organisation where employees are supposed to answer yes or no question if even a single response is yes it you navigate to another screen

 

my code is follow:

 

If ( 

DataCardValue1.Selected.Value = "Yes"Or

    DataCardValue15.Selected.Value = "Yes"Or

    DataCardValue2.Selected.Value = "Yes"Or

    DataCardValue17.Selected.Value = "Yes"Or

    DataCardValue3.Selected.Value = "Yes"Or

    DataCardValue19.Selected.Value = "Yes"Or

    DataCardValue4.Selected.Value = "Yes"Or

    DataCardValue21.Selected.Value = "Yes"Or

    DataCardValue5.Selected.Value = "Yes", Navigate(Screen3,ScreenTransition.Cover));

 

There is no error but it does not work either

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

    Hi @richa007 

     

    Not see any issue with the code. Make sure the result of the Datacard selected value is "Yes".

     

    To troubleshoot this issue

     

    1. Insert a label and set the Text property of the control to DatacardValue1.Selected.Value to verify what value the control is returning

     

    2. Try with Notify to verify the values

     

    If ( 
    
    DataCardValue1.Selected.Value = "Yes" Or
     DataCardValue15.Selected.Value = "Yes" Or
     DataCardValue2.Selected.Value = "Yes" Or
     DataCardValue17.Selected.Value = "Yes" Or
     DataCardValue3.Selected.Value = "Yes" Or
     DataCardValue19.Selected.Value = "Yes" Or
     DataCardValue4.Selected.Value = "Yes" Or
     DataCardValue21.Selected.Value = "Yes" Or
     DataCardValue5.Selected.Value = "Yes",
     Navigate(Screen3,ScreenTransition.Cover),
     Noitfy("All are No Values")
     );

     


    Thanks,
    Stalin - Learn To Illuminate

  • richa007 Profile Picture
    14 on at

    Hi @StalinPonnusamy 

     

    Thank you for the quick response, when I using the notify() I am able to get the message

    Could there be an issue with my navigate command then?

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Looks like we are not getting "Yes" or "No" from the control.

     

    1. Insert a label and set the Text property of the control to 

    DataCardValue1.Selected.Value

    to verify what value the control is returning

     

    2. What is the item's property of the Radio button control?

     

  • richa007 Profile Picture
    14 on at

    1. Nothing is getting captured in the radio button because label is showing blank value

    2. Choices([@'Covid Screening Response'].nthelast14days_x002c_haveyoutrav)

    is my property as i have attached the responses to an existing list on sharepoint

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @richa007 

     

    Tested with a similar scenario and DataCardValue17.Selected.Value should return a value.

     

    StalinPonnusamy_0-1639410161013.png

    StalinPonnusamy_1-1639410208629.png

     

    With condition also works fine

    StalinPonnusamy_2-1639410379918.png

     

  • richa007 Profile Picture
    14 on at

    I am not able to successfully fetch the value, though when I save the form all the values are getting stored on sharepoint

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