Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Checkbox Collection choices and a Input Text box

Posted on by 857
I have checkboxes that I'm using with a multiple choice SharePoint field, one of the checkboxes, if checked displays a text input.  I have the checkboxes saving to a collection, but I need to also save the texted entered into the text input if one particular box is checked.  I'm stuck on how to write it to the collection along with the values of the checkboxes.
 
Is it possible to have checkboxes with a text input?  If so, how would I return that text box value on the form.  I can get it to show up in the SharePoint List, but then one of the checkboxes is not checked any longer and the text input is blank.  Maybe there is a better way to do this, but this is my Update on the DataCard:
 
ForAll(
    ForAll(Split(Concatenate(
        If(chkboxBPA.Value, chkboxBPA.Text & ",", ""),
        If(chkboxCPAF.Value, chkboxCPAF.Text & ",", ""),
        If(chkboxCPFF.Value, chkboxCPFF.Text & ",", ""),
        If('chkboxCPFF-C'.Value, 'chkboxCPFF-C'.Text & ",", ""),
        If('chkboxCPFF-C'.Value, 'chkboxCPFF-T'.Text & ",", ""),
        If(chkboxFFP.Value, chkboxFFP.Text &  ",", ""),
        If(chkboxHybrid.Value, chkboxHybrid.Text &  ",", ""),
        If(Label8.Text, Label8.Text & ",", ""),
        If(chkboxIDIQ.Value, chkboxIDIQ.Text & ",", ""),
        If(chkboxLH.Value, chkboxLH.Text & ",", ""),
        If(chkboxTM.Value, chkboxTM.Text & ",", "")
    ),
    ","
    ), {Result: ThisRecord.Value}),
    {Value:Result}
)
Categories:
  • kmw1130 Profile Picture
    kmw1130 857 on at
    Checkbox Collection choices and a Input Text box
    It is basically what I am doing except my checkbox isn't "other", it has a different name and when that is checked an input text box is visible.  I just need to know how to add it to the collection that I am using for the checkboxes, so it is saved if there is text in it.
  • BhargavPatel Profile Picture
    BhargavPatel 604 on at
    Checkbox Collection choices and a Input Text box
    How about adding "Other" option in the multiselect choice field, and when the "Other" option is selected show a text input field to enter free text, and store the value entered in the text input in a separate SP List text field?
     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,246

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,884

Leaderboard