Building a PowerApp with SharePoint list as a base. Found several Concatenate and IF posts in the forum and throughout the web, but couldn't find what I was looking for. Hoping someone here can help.
Inputs:
- cboComboBox1.Selected.SharePointColumnName (Lookup)
- cboComboBox2.Selected.SharePointColumnName (Lookup)
- chkCheckBox1.Value
- txtTextBox1.Text
- chkCheckBox2.Value
- txtTextBox2.Text
- txtTextBox3.Text
What I want to accomplish:
- If chkCheckBox1.Value = false && chkCheckBox2.Value = false, then txtTextBox3.Text =
Concatenate(
cboComboBox1.Selected.SharePointColumnName, " ",
txtTextBox2.Text
)
- If chkCheckBox1.Value = true && chkCheckBox1.Value = false, then txtTextBox3.Text =
Concatenate(
cboComboBox1.Selected.SharePointColumnName, " ",
cboComboBox2.Selected.SharePointColumnName, " ",
txtTextBox2.Text
)
- If chkCheckBox1.Value = false && chkCheckBox2.Value = true, then txtTextBox3.Text =
Concatenate(
cboComboBox1.Selected.SharePointColumnName, " ",
txtTextBox1.Text, " ",
txtTextBox2.Text
)
- If chkCheckBox1.Value = true && chkCheckBox2.Value = true, then txtTextBox3.Text =
Concatenate(
cboComboBox1.Selected.SharePointColumnName, " ",
cboComboBox2.Selected.SharePointColumnName, " ",
txtTextBox1.Text, " ",
txtTextBox2.Text
)
I was hoping that this would work, I should have known that it would not be this easy:
Concatenate(
cboComboBox1.Selected.SharePointColumnName, " ",
If(chkCheckBox1.Value = true,
Concatenate(cboComboBox2.Selected.SharePointColumnName," ")
),
If(chkCheckBox2.Value = true,
Concatenate(txtTextBox2.Text," ")),
textBox3.Text
)
Thanks in advance.