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 Platform Community / Forums / Power Apps / Visible Variables mult...
Power Apps
Answered

Visible Variables multiple conditions

(0) ShareShare
ReportReport
Posted on by 116

Hi,

 

I have an app all on a canvas with some questions for example see below

111111.png  

 

The user must select on all the questions, if the user has selected just yes and n/a then the save button is the only icon visible, ie

 

222222.png

 

if the user selects one or more defects then i need the defects to appear

 

3333.png

 

then if they select yes then the save icon appears ie.

 

44444.png

 

if they select no then the camera icon appears like below

 

55555.png

 

Could someone help with the if statements and variables? i just cannot get it all to work together? 

 

 

Categories:
I have the same question (0)
  • sayyed007amir Profile Picture
    357 on at

    You need to play with Visible property of icons and whatever you want to show or hide.

    for ex: Set Visible property of Camera icon:

    If(Radio1.SelectedText.Value="No",true,false)

    I am considering this as Radio1:

    image.png Still any doubt ping me

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Questionasking ,

    Based on your demands, I've made a similar test for your reference:

    1)Radios for questions are named:
    Radio1, Radio1_1, Radio1_2

    Radios for double check is named:
    Radio2

    I group a label with Radio as a group, named Group1

    save button is named Icon1

    camera button is named Icon2

    2)set Radio1, Radio1_1, Radio1_2 Items:

     

    ["Yes","N/A","Default"]

     

    set Radio1's OnSelect:

     

    Set(var1,Radio1.Selected.Value);Reset(Radio2)

     

    set Radio1_1's OnSelect:

     

    Set(var2,Radio1_1.Selected.Value);Reset(Radio2)

     

     set Radio1_2's OnSelect:

     

    Set(var3,Radio1_2.Selected.Value);Reset(Radio2)

     

    2)set Group1's Visible:

     

    (var1 ="Default"||var2 ="Default"||var3 ="Default")&&!IsBlank(var1)&&!IsBlank(var2)&&!IsBlank(var3)

     

    //if all selections has been made and you choose one or more Default

    3)set Icon1's Visible:

     

    (var1 in ["Yes","N/A"]&&var2 in ["Yes","N/A"]&&var3 in ["Yes","N/A"])||Radio2.Selected.Value="Yes"

     

    //if all selections has been made and you only choose Yes or N/A, or you choose double check to Yes

    4)set Icon2's Visible:

     

    Radio2.Selected.Value="No"

     

     //choose double check to No

     

    928.gif

     Best regards,

  • DGWolfe Profile Picture
    on at

    Could the same principle apply is you wanted to hide a group (text/combobox inputs) and have them stay invisible until 12 specific buttons were pushed? I have played around with a few scenarios, using If function int he OnVisible screen, but the formula's I have used aren't correct. They turn the group visible after the first button is pressed, not all twelve.

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard