web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Set Radio Button Value...
Power Apps
Unanswered

Set Radio Button Value if Parameter is not Empty

(0) ShareShare
ReportReport
Posted on by 254

Can you tell me if this is achievable, so far I haven't cracked it but I feel I am close.

 

I have an app with a gallery which has three sets of radio buttons, each radio button set defaults to the All value on the app start.  I'd like to be able to pass a parameter to the app in the URL (sorted that bit) but I then want the gallery to be filtered based on what the parameter value is.  I was thinking it would be possible to set the selected value of my radiobuttonset based on the parameter value but this doesn't appear to work.

 

I have the following set on app start - If(Param("Item") = "E3 Review", radiobuttonset .SelectedText.Value = "E3 Review", radiobuttonset .SelectedText.Value = "All")

 

The above doesn't work.  So the question is, is this even possible and if so where am I going wrong?

 

TIA

 

 

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,989 Moderator on at
    Re: Set Radio Button Value if Parameter is not Empty

    @Manc_Gurl 
    Are you trying to set the Default value of radio buttons?  You said you wanted to apply a Filter but that doesn't sound quite right.

     

    Please send a screenshot and describe what you want to happen 🙂

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."  

  • Manc_Gurl Profile Picture
    254 on at
    Re: Set Radio Button Value if Parameter is not Empty

    Apologies for my terrible description.

     

    The radio buttons filter my gallery, so I'd like the app to load with the appropriate radio button selected (so that it filters the gallery) when the parameter is not empty, if the parameter is empty I'd like it to be defaulted to "All".  I already have the default property for all my radio buttons set to All so if there is some way to select a particular value of radio option when the app loads that would be awesome!

     

    thanks

  • mdevaney Profile Picture
    29,989 Moderator on at
    Re: Set Radio Button Value if Parameter is not Empty

    @Manc_Gurl 
    OK, I understand what you are generally asking now.  But could I please see what the app looks like?  It will help me give a response 🙂

  • Manc_Gurl Profile Picture
    254 on at
    Re: Set Radio Button Value if Parameter is not Empty

    Capture.JPG

     

    @mdevaney So when the screen loads now everything is defaulted to ALL and the gallery is not filtered.  The radio buttons on the right filter the gallery based on their values.  If a parameter is passed can the top set of radio buttons be predefined to a particular value based on whats in the parameter?  I should probably also mention that my radio button options are from three different collections.

  • WarrenBelz Profile Picture
    152,845 Most Valuable Professional on at
    Re: Set Radio Button Value if Parameter is not Empty

    @Manc_Gurl ,

    Please tag the responder like this @mdevaney in your replies - much easier to see in our feed.

  • Manc_Gurl Profile Picture
    254 on at
    Re: Set Radio Button Value if Parameter is not Empty

    @mdevaney I'm still struggling with this, do you think it's actually possible or should I abandon the idea? TIA

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard