web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Form Error Field required
Power Apps
Answered

Form Error Field required

(0) ShareShare
ReportReport
Posted on by Super User 2024 Season 1

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)

CaptureForm.PNG

 

 

Patch 

Capture.PNG

 

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   

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Ramole Profile Picture
    Super User 2024 Season 1 on at

    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. 

     

     

    Capturefixed.PNG

     

     

    Thank you 

     

     

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard