Hello guys, I am little bit stuck on this one. I have a forms with datacards, in which there are also checkboxes. I want to submit my form, but also want to add a text into another column, depending on if the user has selected the checkbox or not (into an excel). My issue is that I don’t know how to combine my text value and my checkbox value (which needs to be added into another column)
This is the code I have on my datacard “First_Name” on Update Property
Concatenate(DataCardValue2_1.Text, If(Checkbox3.Value = true, Patch(Table2_2, Defaults(Table2_2), {FN_manuell: "yes"})) )
It just doesn’t work
The idea is, the form is based on an AI builder and if the AI doesn’t get every column right, the user should be able to select the checkbox, so that the excel helps me to see which columns the ai got right and which needed to be filled in manually.
Did I miss something? Can u guys help me? Is this even possible? Just tired and confused at this point. Thanks in advance. Have a great weekend.
Solved! Go to Solution.
Hi @carlosrush1pp - Are these fields in the same datasource? - I assumed they were not based on your use of Patch.
If this is the same datasource, you don't need to use patch, just use the SubmitForm action, but change the default text in the 'FN_manualle' field.
To do this, show the 'FN_manuell' field in the form, change the default for the datacardvalue within to
If(Checkbox3.Value, "Yes")
Then switch the visible property of the 'FN_manuell' Datacard to false.
Hope this helps
Can you try this:
If(
Checkbox3.Value,
Patch(Table2_2, Defaults(Table2_2),
{FN_manuell: DataCardValue2_1.Text & "_Yes"}
)
)
Hi @AmDev , thanks for your reply
unfortunately this isn‘t he output that I want. Datacardvalue2_1.Text has an another column (First_Name) than the „FN_manuell“ so they shouldn’t be togehter in one column
ex:
First_Name | FN_manuell
Steve | yes
Sorry for the confusion!
Hi @carlosrush1pp - Are these fields in the same datasource? - I assumed they were not based on your use of Patch.
If this is the same datasource, you don't need to use patch, just use the SubmitForm action, but change the default text in the 'FN_manualle' field.
To do this, show the 'FN_manuell' field in the form, change the default for the datacardvalue within to
If(Checkbox3.Value, "Yes")
Then switch the visible property of the 'FN_manuell' Datacard to false.
Hope this helps
this works perfectly. Wow. I thought way too complicated 😄
Thank you so much! Have a nice weekend
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
196 | |
52 | |
41 | |
39 | |
35 |
User | Count |
---|---|
261 | |
85 | |
71 | |
69 | |
66 |