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 / Prefilled Multi Checkb...
Power Apps
Unanswered

Prefilled Multi Checkboxes values of Gallery Control in Power Apps

(0) ShareShare
ReportReport
Posted on by 89

Hello,

 

I've one Gallery Control which have checkbox and populate values from choice filed of SharePoint List.

Now, I want to do prefilled/checks on same control based on existing SharePoint List items.

Is there any solution to achieve this? Currently I've some text field which contains all the selected value of particular items but unable to pre filled the checkbox based on these values.

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    yes you can, but we will need more info on the structure of your gallery, list, and what controls/values the checkbox default values will be based on

  • REENASH Profile Picture
    89 on at

    Yes @TheRobRush.
    The Gallery Control have one checkbox and its items property is Choices([@listname].ChoiceFieldName').

  • TheRobRush Profile Picture
    11,128 Moderator on at

    You will need to show us what the column you in sharepoints details are  for the column you want to be default for your checkbox. And then explain what data you want saved there, and how you want checkbox to react to it. (true false, based on a word, etc.)

  • REENASH Profile Picture
    89 on at

    @TheRobRush 

    Here, see the image. Have one Gallery which have one checkbox control. Gallery item property is Choices([Project].Answer'). I'm saving this choice feild values in Project List. Now I want to display the same in other screen in displayMode as View and also wants to pre check the checkboxes based on saved choice values.
    Currently, I'm able to show the selected values in lable or text but i want to show in same manner in gallery checkbox control. Like the save choice values will appear as pre checked and others not.

     

    REENASH_0-1646760547816.png

     

  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    Ok here is an example, I have a gallery, and in it I place a checkbox and set it's Text to "AC Ducts".

     

    I then set it's Default to

     

    If(Self.Text in ThisItem.Area.Value, true, false)

    where Area is the choice column, and .Value are the choices selected in it.

     

    Any item that has AC Ducts chosen will be checked and those that do not, will not be checked.

     

    CheckBoxExample.PNG

     

    This method can be used to set default for them so they can be pulled back up later and edited etc

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard