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 / Building quiz using ga...
Power Apps
Answered

Building quiz using gallery but each question has either 2 answers, 4 answers, or 5 answers.

(0) ShareShare
ReportReport
Posted on by 6

I created a quiz but each question has a different amount of answers. I want to hide the radio buttons of the fields that don't have answers. Is there a way to do that. As you can see below there are some questions with 2 answers, some with 4 and some with 5. I want to hide the radio button if an answer isn't associated.

rlevi_0-1716320276028.png

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @rlevi ,

     

    I understand that all the questions are items of a Gallery, but what about answers? Are they in a sub-Gallery as well?

     

    Best regards,

  • rlevi Profile Picture
    6 on at

    The radio control is used within the gallery.

    rlevi_0-1716379397836.png

    and here is my SP list

    rlevi_1-1716379798810.png

     

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @rlevi ,

     

    What formula are you using in Items property of the Radio control? 

     

    Anyways, I think you can use a Filter function for the data source of Radio and get nonblank values as options.

    Filter(CurrentItems, !IsBlank(Value))

     

    Best regards,

  • rlevi Profile Picture
    6 on at

    Thank you so much! That worked!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard