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 / Visibility of button b...
Power Apps
Answered

Visibility of button based on selection of radio button in gallery

(0) ShareShare
ReportReport
Posted on by 140

Hi all,

 

I have a radio button within a checklist in a gallery and i set a button visibility based on the selection of the value of the radio button. 

 

Below is the formula that i have written. 

 

If(Radio1.Selected.Value = "Yes", true, false)

 

 if the user choose No in the next question of the checklist, the visibility of the button will turn false. However, i want the visibility of the button to remain appear so long a "Yes" value is selected in any of the question. Could someone help with the formula?

Categories:
I have the same question (0)
  • Florian_Kleinz Profile Picture
    227 on at

    Hello,

     

    I have a few questions:

     

    • is the button outside the gallery?
    • Does the amount of elements in the gallery vary?
    • What is the DataSource of your gallery?

     

    Best regards

  • Boon-1 Profile Picture
    140 on at

    @Florian_Kleinz 

     

    The button is outside of the gallery. There is a Yes and No choice for the radio button in the gallery and datasource of the gallery is sharepoint list.

  • Verified answer
    Erica0214 Profile Picture
    on at

    @Boon-1 

     

    You can use Variables to do that. 

     

    Set the OnSelect property for the radio to update a variable:

     

    If(Radio1.Selected.Value=Yes,Set(var_visible,true),Set(car_visible,false))

     

    Then set the visible property of button as var_visible.

  • Boon-1 Profile Picture
    140 on at

    Hi @EricaBao,

     

    Many thanks it's working. I make modification to your formula by omitting the "false state" in the if logic formula to suit my context.

     

     

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard