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 / Checkboxes without Dat...
Power Apps
Answered

Checkboxes without Datasource

(0) ShareShare
ReportReport
Posted on by 25

 

Hi all, 

 

I am currently building a PowerApp that collect's information via form and passes that information through JSON and into a PDF. 

I am struggling to only get selected values into a collection. So I am having to display them all and have the name and say if they are True/False. I hate the way this is and can't get my head around how to only show selected checkboxes. See below for example.

 

Form Question

wardeee5_1-1625828128725.png

 

Summary Page before creating PDF:

wardeee5_0-1625827937834.png

 

I have hardcoded each one of these values as I am not connecting to a data source. The PDF saves into a list. 

 

 

 

I did try the Collect & Remove on check/uncheck but turns out a bit like this: 

 

Test Environment PowerApp

wardeee5_5-1625828470183.png

 

Collection

wardeee5_3-1625828353724.png

 

If possible I would like to build something similar to this: 

 

wardeee5_2-1625828252656.png

 

Any help would be greatly appreciated!

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,940 Most Valuable Professional on at

    Hi @wardeee5 ,'

    The broad syntax for a collection would be

    ClearCollect(
     colXXX,
     Filter(
     GalleryName.AllItems,
     CheckBoxName.Value
     )
    )
    

    which would give you the content of all records where the checkbox was checked.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • wardeee5 Profile Picture
    25 on at

    Hi Warren, 

     

    Thanks for the prompt responce. However i am still getting a error message in my Testing Enviroment.

     

    See below: 

     

    wardeee5_0-1625831564706.png

    I have two checkboxes in the gallery.

     

    Thanks,

  • WarrenBelz Profile Picture
    155,940 Most Valuable Professional on at

    @wardeee5 ,

    Free-typed code strikes again . . . see correction in post

  • WarrenBelz Profile Picture
    155,940 Most Valuable Professional on at

    Hi @wardeee5 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • wardeee5 Profile Picture
    25 on at

    Hi Warren, really appreciate the help will accept it as a solution! Just one other thing that's not really related so it's fine if I receive no answer (Will eventually figure it out). So I have my two checkboxes set up as shown below.

     

    wardeee5_0-1626681067185.png

    wardeee5_1-1626681114921.png

    Is there anyway to any collect the values that are 'True'

     

    Thanks again for the help.

    Alex Ward

     

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

#2
11manish Profile Picture

11manish 224

#3
Valantis Profile Picture

Valantis 181

Last 30 days Overall leaderboard