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 / 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:
  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard