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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Mandatory Field Messag...
Power Apps
Unanswered

Mandatory Field Message popping again and again while record submission

(1) ShareShare
ReportReport
Posted on by 184
Hi,
 
Due to some dependecies 
 
I am inserting one item into field through patch function and remaining all I am submitting using form values.
 
But I am keeping getting Application name field is missing.
 
SubmitForm(Form1_2);
Patch(CreateNewRequest,Defaults(CreateNewRequest),{'Application_x0020_Name':DataCardValue1_1.Text,PermissionLists: Concat(ComboBox1.SelectedItems, ID , ",")});
 
Let me know if I am making any mistake.
 
Regards,
 
Sudheer
 
 
 
I have the same question (0)
  • Suggested answer
    Giraldoj Profile Picture
    762 Super User 2025 Season 2 on at

    Hi Sudheer,

    The issue you're facing likely comes from how SubmitForm() and Patch() are working separately.

    When you use SubmitForm(Form1_2), it attempts to submit all fields bound to that form. However, when you follow it immediately with a Patch(), you're essentially creating a second item in the CreateNewRequest table — you're not updating the same one the form submitted.

    That’s why you see an error like "Application name field is missing" — the form submission and patch are disjointed.

    If you're inserting one field via Patch and the rest via Form, you should consider patching everything in one call, or using the OnSuccess property of the form to perfom the patch.

  • NS-10041416-0 Profile Picture
    184 on at
     
    Thanks for the reply.
     
    Please help me with a sample code snippet of using Form submission and patch.
     
    Regards,
     
    Sudheer
  • Suggested answer
    Giraldoj Profile Picture
    762 Super User 2025 Season 2 on at
    Sure, you can try using only patch to update everything instead of doing a mix between SubmitForm and Patch.
     
    Patch(CreateNewRequest, Defaults(CreateNewRequest), {
        'Application_x0020_Name': DataCardValue1_1.Text,
        PermissionLists: Concat(ComboBox1.SelectedItems, ID, ","),
        Field1: DataCardValueX.Text,
        Field2: DataCardValueY.Text
        // Add other fields from the form here manually
    });
    
     
    or Try to use the patch only in the onsuccess property here the form still has the context of the form before updating to the data soruce.
    Patch(CreateNewRequest, Form1_2.LastSubmit, {
        'Application_x0020_Name': DataCardValue1_1.Text,
        PermissionLists: Concat(ComboBox1.SelectedItems, ID, ",")
    });
    
    Regards,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard