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 / Multiple Answers Check...
Power Apps
Answered

Multiple Answers Checkboxes

(0) ShareShare
ReportReport
Posted on by 728

Hello,

 

I am creating a quiz that has a question with 6 choices.  4 of the choices are correct.  I would like to set score but i am struggling to find a solution.

 

If all 4 options are selected, score to be set as 2

If some options are selected, score to be set as 1

If wrong answer is selected, score to be set as 0

 

Can anyone help me please?

 

thanks

Alistair

 

 

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @neill_long  The Value property of the CheckBox will return true or false. You can use this to find what the user has selected and then do your score calculation. If the no. of choices is dynamic, you can them into a gallery and do the same check.

  • Verified answer
    v-albai-msft Profile Picture
    Microsoft Employee on at

    Hi @neill_long ,

    From your information, I know you have 6 checkboxes, 4 are with correct answer and 2 are with incorrect answer.

    So do you want to achieve below scenario?

    1. When all 4 correct checkboxes are selected, score to be set as 2

    2. When at least one correct checkbox is selected, score to be set as 1.

    3. No matter how many correct checkboxes are selected, when at least one incorrect checkbox is selected, score to be set as 0

     

    If my understand is correct, you can try this method. In my example, Checkbox1, Checkbox2, Checkbox3 and Checkbox4 are with correct answers, Checkbox5 and Checkbox6 are with incorrect answers. Here is the formula:

    If(
    Checkbox1.Value=true&&Checkbox2.Value=true&&Checkbox3.Value=true&&Checkbox4.Value=true&&Checkbox5.Value=false&&Checkbox6.Value=false,2,
    (Checkbox1.Value=true||Checkbox2.Value=true||Checkbox3.Value=true||Checkbox4.Value=true)&&(Checkbox5.Value=false&&Checkbox6.Value=false),1,
    Checkbox5.Value=true||Checkbox6.Value=true,0)

    v-albai-msft_0-1621237930340.png

    Best regards,

    Allen

  • neill_long Profile Picture
    728 on at

    @v-albai-msft this is what i was trying achieve.  I think i was almost there but your formula is a lot more simplified and much better than what I had come up with.

     

    thanks very much

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 339 Most Valuable Professional

#2
11manish Profile Picture

11manish 180

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard