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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Find the checked value...
Power Apps
Unanswered

Find the checked value inside a gallery

(0) ShareShare
ReportReport
Posted on by 431

Hello Power users,

 

I have a gallery with 6 items in it. Each of them has a check box in it. On display mode I would like to check which of the check boxes is checked and which are not. Is there a way to find out if it is checked. Below is the sample.

Let's assume below are the  checkboxes and can anyone please help me how do I figure out the checked box.

 

Laptop
Fan
Mobile
Router
Tv
Speaker

 

Thank you so much in advance!

Categories:
I have the same question (0)
  • Gochix Profile Picture
    1,935 Moderator on at

    @KrishR ,

     

    To check if the Checkbox is "checked" all you need is:

    If(Checkbox.Value=true,"checked","not checked")


    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    this is the code on onCheck in check boxthis is the code on onCheck in check boxthis is the code on OnUncheck in check boxthis is the code on OnUncheck in check boxusing two gallery for showing the check box and showing the checked option on gallery 2ndusing two gallery for showing the check box and showing the checked option on gallery 2nd

    I have attached the working screenshot. Please let me know if you encounter any issues.

     

    -----------------

    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    this is the code on onCheck in check boxthis is the code on onCheck in check boxthis is the code on OnUncheck in check boxthis is the code on OnUncheck in check boxusing two gallery for showing the check box and showing the checked option on gallery 2ndusing two gallery for showing the check box and showing the checked option on gallery 2nd

    I have attached the working screenshot. Please let me know if you encounter any issues.

  • KrishR Profile Picture
    431 on at

    Hi @Gochix ,

     

    This worked out. Thank you so much 

  • KrishR Profile Picture
    431 on at

    Hi @anandm08 ,

     

    Thank you so much for the help. From the screenshots I have a question that I'm still looking for, hope you can help me. Below is the detailed explanation.

     

    I have a choice column created in dataverse with "recommended" which created a choice set that I will sync with my choice column. Also, this is a multi select option.

     

    I did convert this multi select choice column to checkboxes as per the requirement. Below is the process I implemented.

     

    Removed the combobox. Added a gallery inside the datacard and inserted a checkbox in it. 

    Item property of the gallery is Choices('Choose a Device') and updated the text value of the checkbox to Thisitem.Value

     

    For checkbox

    OnCheck : Collect(CollDevices,ThisItem.Value)

    OnUncheck : RemoveIf(CollDevices,Value=ThisItem.Value)

    Default property of the checkbox  : ThisItem.Value in CollDevices.Value

     

    Updated the Update property of the datacard with the collection : CollDevices

     

    Everything went well until the submission of the form. But when I try to view the submitted item or look at the collection after selection I see the Question mark instead of the value of what I checked.

     

    OnVisible property of the form I had the code as : ClearCollect(CollDevices,LookUp(TableName, ID = RefID,ChoiceColumnName))

     

    MultiChoiceSelection is the reference link I've used to achieve converting the choices to checkboxes but the link is based on sharepoint.

     

    Not sure what I've missed. Can you please help.

     

    Thank you so 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard