Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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

 

  • rlevi Profile Picture
    6 on at
    Re: Building quiz using gallery but each question has either 2 answers, 4 answers, or 5 answers.

    Thank you so much! That worked!

  • Verified answer
    v-jefferni Profile Picture
    on at
    Re: Building quiz using gallery but each question has either 2 answers, 4 answers, or 5 answers.

    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
    Re: Building quiz using gallery but each question has either 2 answers, 4 answers, or 5 answers.

    The radio control is used within the gallery.

    rlevi_0-1716379397836.png

    and here is my SP list

    rlevi_1-1716379798810.png

     

     

  • v-jefferni Profile Picture
    on at
    Re: Building quiz using gallery but each question has either 2 answers, 4 answers, or 5 answers.

    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,

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard