Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Textinput and Checkbox fields

(1) ShareShare
ReportReport
Posted on by 47

I am trying to build my app which includes textinput fields, checkboxes. 

 

My scenario is: 

If textinput 1, yes checkbox is marked moved to additional textinput 1 If Textinput 1 no checkbox I marked do not populate If Textinput2, yes checkbox is marked moved to additional textinput2 If textinput 2, no checkbox is marked do no populate If Textinput 1 no checkbox Is marked, and textinput 2 yes checkbox is marked, moved textinput2 to additionaltextinput , etc. 

 

I am only able to get Texinput 1 to move to additionaltextinput 1 but not any up if the field before that was blank.  Can anyone help me figure out how to write this out to function as I need to . 

Categories:
  • Heatherb208 Profile Picture
    47 on at
    Re: Textinput and Checkbox fields

    I have been doing more work to this, and I have got the data to move over and populate one text field up, however it still populates in its correlating field, which I do not want to have happen if the text moves up.   Here is the code I have written in the Default of the fields, with a screenshot of what it looks like with this code.  Any advise of how to get it to not show up in the specific field if it moves up? 

    AdditionalTextInput1 Default:

     

    If(
        Checkbox1.Value = true, TextInput1.Text,
        Checkbox1.Value = false && Checkbox2.Value = true, TextInput2.Text,
        Checkbox1.Value = false && Checkbox2.Value = false && Checkbox3.Value = true, TextInput3.Text,
        Checkbox1.Value = false && Checkbox2.Value = false && Checkbox3.Value = false && Checkbox4.Value = true, TextInput4.Text,
        Checkbox1.Value = false && Checkbox2.Value = false && Checkbox3.Value = false && Checkbox4.Value = false && Checkbox5.Value = true, TextInput5.Text,
        Checkbox1.Value = false && Checkbox2.Value = false && Checkbox3.Value = false && Checkbox4.Value = false && Checkbox5.Value = false && Checkbox6.Value = true, TextInput6.Text,
        ""
    )

     

     

    AdditionalTextInput2 Default:

    If(
        Checkbox2.Value = true, TextInput2.Text,
        Checkbox2.Value = false && Checkbox3.Value = true, TextInput3.Text,
        Checkbox2.Value = false && Checkbox3.Value = false && Checkbox4.Value = true, TextInput4.Text,
        Checkbox2.Value = false && Checkbox3.Value = false && Checkbox4.Value = false && Checkbox5.Value = true, TextInput5.Text,
        Checkbox2.Value = false && Checkbox3.Value = false && Checkbox4.Value = false && Checkbox5.Value = false && Checkbox6.Value = true, TextInput6.Text,
        ""
    )

     

     

    AdditionalTextInput3 Default:

    If(
        Checkbox3.Value = true, TextInput3.Text,
        Checkbox3.Value = false && Checkbox4.Value = true, TextInput4.Text,
        Checkbox3.Value = false && Checkbox4.Value = false && Checkbox5.Value = true, TextInput5.Text,
        Checkbox3.Value = false && Checkbox4.Value = false && Checkbox5.Value = false && Checkbox6.Value = true, TextInput6.Text,
        ""
    )

     

    AdditionalTextInput4 Default:

    If(
        Checkbox4.Value = true, TextInput4.Text,
        Checkbox4.Value = false && Checkbox5.Value = true, TextInput5.Text,
        Checkbox4.Value = false && Checkbox5.Value = false && Checkbox6.Value = true, TextInput6.Text,
        ""
    )

     

    AdditionalTextInput5 Default:

    If(
        Checkbox5.Value = true, TextInput5.Text,
        Checkbox5.Value = false && Checkbox6.Value = true, TextInput6.Text,
        ""
    )

     

    AdditionalTextInput6 Default:

    If(
        Checkbox6.Value = true, TextInput6.Text,
        ""
    )

    Heatherb208_0-1720712532541.png

     

  • Heatherb208 Profile Picture
    47 on at
    Re: Textinput and Checkbox fields

    My apologies, I hope this helps explain what I am looking for. 

     

    If textinput1, yes checkbox is marked, add this to additionaltextinput1

    If textinput1 no checkbox I marked, do not populate in additionaltextinput1

     If Textinput2, yes checkbox is marked, add this to additionaltextinput2 

    If textinput2, no checkbox is marked do not populate in additonaltextinput2

     If textinput1 no checkbox Is marked, and textinput2 yes checkbox is marked, move textinput2 to additionaltextinput1 , etc. 

     

    Textinput1, Textinput2, AdditionalTextinput1, AdditonalTextinput2 are the name of my text input fields.

  • Michael E. Gernaey Profile Picture
    40,887 Super User 2025 Season 1 on at
    Re: Textinput and Checkbox fields

    Hi @Heatherb208 

     

    Please please show in screens its so much easier to understand and make sure there are no miscommunications.

     

    Are you saying if TextInput 1, what it that? Are you saying if the TextInput.Text = 1???????

     

    And please separate out steps don't write a long sentence. Make it easy for us to help you not break out brains lol


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,618 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,962 Most Valuable Professional

Leaderboard