Hello everyone,
Iam stuck on Field required because i have a Toggle and when is true i use a patch to send the data to SharePoint or else will use normal submit form , here is my problem is when using patch function I add at end Form.Updates when i try to patch error Field required check number on the form Check Number field, or i had to remove the patch this Form.Updates then it will patch without error, so my question is i want to ignore the check number field on the form when toggle is true and patching as i have another check number field on the gallery collection as you can see screenshot
Submit(Form)
Patch
Patch Formula I am using
UpdateContext({
LoadingCal:
true
});
If(
!IsBlank(Trim(txtinpBusinessName.Text)) || !IsBlank(cmbTypeCheckGal.Selected) || !IsBlank(txtinpInvoiceNumber) || !IsBlank(cmbStatusCheck.Selected) || !IsBlank(Trim(txtinpCheckNumberGal_2.Text)) || !IsBlank(txtinpCheckAmountGal_2.Text) || !IsBlank(datepkCheckDueDateGal_2.SelectedDate),
// Set(
// varLoanChecks,
ForAll(
galMetadata_1.AllItems,
Patch(
'Ramole Check Management',
Defaults('Ramole Check Management'),
{
'Business Name': txtinpBusinessName.Text,
'Type of Check': cmbTypeCheckGal.Selected,
'Invoice Number': txtinpInvoiceNumber.Text,
'Date due': datepkCheckDueDateGal_2.SelectedDate,
'Check Number':txtinpCheckNumberGal_2.Text,
amount: Value(txtinpCheckAmountGal_2.Text),
Status: cmbStatusCheck.Selected,
note: txtinpCheckNotesGal_2.Text
},
formContent_1.Updates
)
)
Thanks
Solved! Go to Solution.
Hi
All good to go I have now used plan B which is to add another form and remove the check number field from the second form and it works now.
The reason I wanted to use the form is I need to add attachments photos using collection adds for me on Attachment control and sends off to data source with record.
Thank you
Hi
All good to go I have now used plan B which is to add another form and remove the check number field from the second form and it works now.
The reason I wanted to use the form is I need to add attachments photos using collection adds for me on Attachment control and sends off to data source with record.
Thank you
User | Count |
---|---|
257 | |
110 | |
90 | |
51 | |
44 |