cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

How to get value of selected checkbox

All, 

 

I am new to power apps and appreciate if someone can help with this.

I have a gallery with some checkboxes on it.

I need to know which check boxes are selected before I do the patch. I need to send an email and put selected checkboxes in the email body. 

is there a way to see which check box is selected?

 

Thanks in advance,

 

ForAll(
    (Filter(
        Gallery_M.AllItems,
        CheckboxTask.Value = true
    )),
    Patch(
        ChkList_TaskList,
        Defaults(ChkList_TaskList),
        {ParentID: Parent_ID_debug_M.Text},
        {Title: CheckboxTask.Text},
        {SubmitedBy: User().FullName},
        {Description: LabelDesc.Text},
        {ITSM_Ticket: InputITSM.Text},
        {DayToBeVerified: dayOfWeek},
        {Created_Text: Text_Date},
        {Morning_Evening: "M"}
    )
);
11 REPLIES 11

This solved my problem of how to get the values of the items selected in my gallery to display in a label.  Thank you so much.

 

Greener_0-1600823376655.pngGreener_1-1600823440565.png

@v-xida-msft 

The attributes are FasleText and TrueText. Accepts a STRING

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,498)