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 .
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,
""
)
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.
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
WarrenBelz
146,618
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,962
Most Valuable Professional