Hello all! I hope this message finds you well and hoping someone can guide me better please
I'm building a power app application for a ticket system. I'm using Patch function on "OnSuccess" property of the form,
I have different custom cards because this ticket system has different categories and under those categories exist different custom cards (because they are very specific fields for each category).
Whenever a category is selected I would like to patch the data from the category selected fields that are filled in.
I have this following formula:
Patch(
'QA Ticket System_1',
LookUp(
'QA Ticket System_1',
ID = FormRequest_3.LastSubmit.ID
),
{
// Existing fields data
'Brief Description': Concatenate(
"📝 Additional Details: " & Char(10) & Char(10),
If(
marketingAreaValue_3.Selected.Value = "Printing",
Concatenate(
printingShippingAddress_lbl_3.Text & Char(10) & printingShippingAddres_input_3.Text,
Char(10),
printingNameRecipient_lbl_3.Text & Char(10) & printingNameRecipient_input_3.Text,
Char(10),
If(
printingQuestion_input_3.Selected.Value = "What literature would you like printed?",
Concatenate(
"🔗 URL: " & printingQuestionURL_input_3.Text & Char(10),
"#️⃣ Quantity: " & printingQuestionQty_input_3.Text
), ""
)
)
),
If(
marketingAreaValue_3.Selected.Value = "Request Access to Platform",
Concatenate(
If(
!IsBlank(txtInput_costCenter_3.Text),
costCenterAccess_Label_3.Text & Char(10) & txtInput_costCenter_3.Text,
If(
!IsBlank(textInput_SalesOffice_3.Text),
salesOffice_Label_3.Text & Char(10) & textInput_SalesOffice_3.Text
), ""
)
)
),
Char(10) & Char(10) & DataCardValue26_3.Text
)
}
)
I'm trying to use IF statement whenever a specific marketingAreaValue_3.Selected.Value is selected
for example marketingAreaValue_3.Selected.Value = "Printing" I would like to patch all fields for Printing
and when marketingAreaValue_3.Selected.Value = "Request Access to Platform" I would like to patch all fields applicable for this category, and so on with another different categories, I have 18 categories for the marketingAreaValue_3 field
but the issue is that at the moment of testing and submit a form, is not patching/sending data for "Request Access to Platform"
can someone please help me or guide me ?
thank you in advance!