Hi,
I have two data cards, one is a combo box and the other is Text Input, both are connected to a SharePoint list as Data sources and both are text fields in SharePoint (the SST being a text 'Yes' or 'No'field:

When the Combo box has 'In-Progress' selected and the SST Emailed field = 'No', I run a workflow with the following code:
If(
ComboBox7_2.Selected.Value = "In-Progress" And DataCardValue2_2.Text = "No",
Set(
varMailSentDate,
'NewEmployeeOnboarding-CheckForm'.Run(
varSendEmail,
varClientName
).varemailsentdate
);
Set(varEmailent,"Yes");
):
SubmitForm(frmDetails);
But before the form Submits in the code above, I want to be able to set the DataCardValue2_2.Text = "Yes" (which is the SST Emailed field on the form), so that value is written back to SharePoint. I understand I can use a patch, but is there a way to change this form by setting the Datacardvalue and then submitting the form?
Cheers,
G.