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 / How to just validate f...
Power Apps
Answered

How to just validate form instead of submitting it

(0) ShareShare
ReportReport
Posted on by 133

So my application is about getting form details and sending a mail.

In Screen-1: I have a form with a submit button - 

 

SubmitForm(MainForm)

 

Actually, I have to validate on screen-1 and then if validation is successful then I have to navigate to Screen-2 which shows the mail content.
But users can also cancel and navigate back to Screen-1 and make changes to the form. and they can click on Submit button.

But when I clicked to submit a second time I got an error message like this - 

 

the requested operation is invalid. Server response: list_name failed: the list item could not be added or updated because duplicate values were found in the following fields in the list: [request ID], client request ID: XXXXX, server request ID: XXXXX

 

I was thinking to submit the form when they clicked send mail on Screen-2.

What would be the issue? 

 

 

@WarrenBelz @RezaDorrani @Shanescows @Drrickryp 

Categories:
  • Verified answer
    AJ_vizMan Profile Picture
    on at

    Hi @Rhk -
    On 'Display Mode' of submit button use - If(FormName.Valid=true ,Edit,Disabled)

    And Submit form using 'On Select' property of button ( hope you are already doing same).

     

    And now use 'On Success' property of form to navigate to new screen 

    Navigate('New Screen Name');

    Hope it helps 

  • Rhk Profile Picture
    133 on at

    The reason why I'm using SubmitForm(FormName) in submit button is that it throws an Error message under every datacardvalue when it is empty.
    Yes, Form.Valid works for custom notification

  • AJ_vizMan Profile Picture
    on at

    @Rhk - If you got the solution than mark above post as solution for benefit of others facing same issue.

  • Verified answer
    DavidZoon Profile Picture
    738 Most Valuable Professional on at

    Hello,

    Here is an idea, wich can be more user friendly :

    In your screen one, add a button to navigate to your screen 2

    In your screen 2, add the submit button :

     

     

    SubmitForm(MainForm)

     

     

    (and a button to go back to screen1)

    in the MainFrom.Onfailure : 

     

     

    Navigate(Screen1)

     

     

    If user have missed requiered fields, he will be back to the form screen with highlighted errors

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard