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

Community site session details

Session Id : WV1ky63vk1xbm+QfS41d4v
Power Apps - Building Power Apps
Answered

Prefilled Multi Checkboxes values of Gallery Control in Power Apps

Like (0) ShareShare
ReportReport
Posted on 7 Mar 2022 18:17:54 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.

I have the same question (0)
  • Verified answer
    TheRobRush Profile Picture
    11,123 Moderator on 08 Mar 2022 at 18:19:57
    Re: Prefilled Multi Checkboxes values of Gallery Control in Power Apps

    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

  • REENASH Profile Picture
    89 on 08 Mar 2022 at 17:32:19
    Re: Prefilled Multi Checkboxes values of Gallery Control in Power Apps

    @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

     

  • TheRobRush Profile Picture
    11,123 Moderator on 08 Mar 2022 at 16:54:02
    Re: Prefilled Multi Checkboxes values of Gallery Control in Power Apps

    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 08 Mar 2022 at 13:11:25
    Re: Prefilled Multi Checkboxes values of Gallery Control in Power Apps

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

  • TheRobRush Profile Picture
    11,123 Moderator on 07 Mar 2022 at 19:10:01
    Re: Prefilled Multi Checkboxes values of Gallery Control in Power Apps

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 936 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 375 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 330 Super User 2025 Season 2

Last 30 days Overall leaderboard
Loading complete