cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

My form is not submitting/ create Popup when form is submitted

Hi,

When I run a test on my form, my form does not submit. I know this because when I check my Microsoft List, the submission details do not appear. 

 

My code for the submit button is: SubmitForm(EditForm1)

My form is called EditForm1

 

- I also want to create a popup/indication that the form has been submitted

1 ACCEPTED SOLUTION

Accepted Solutions
StalinPonnusamy
Super User
Super User

Hi @Anonymous

 

As Warren mentioned, use OnSuccess and onFailure on the form to notify. By default, OnSuccess property is Back() and OnFailure is false for Form.

 

Find the below screenshot for reference

StalinPonnusamy_0-1625981029411.png

StalinPonnusamy_1-1625981136193.png

 

If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

View solution in original post

5 REPLIES 5
WarrenBelz
Super User
Super User

Hi @Anonymous ,

Firstly from what you have posted, that is the correct code for submitting a form - do you get an error (there will be a red X above the submit button after submitting when you go back to Design Mode).

Also for a message on form submission, put a Notify() on the OnSuccess of the Form. You can also put one OnFailure if you want to see if it did not submit.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

StalinPonnusamy
Super User
Super User

Hi @Anonymous

 

As Warren mentioned, use OnSuccess and onFailure on the form to notify. By default, OnSuccess property is Back() and OnFailure is false for Form.

 

Find the below screenshot for reference

StalinPonnusamy_0-1625981029411.png

StalinPonnusamy_1-1625981136193.png

 

If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

Anonymous
Not applicable

I was able to figure it out, it was saying that the "Title" is required, so I was able to fill that in. 

Anonymous
Not applicable

Thank you!

StalinPonnusamy
Super User
Super User

Hi @Anonymous 

Capture the error in the variable on the form failure

 

OnFailure: Set(
    formerror,
    First(
        Errors(
            'Aisle Assignment',
            EditForm1.LastSubmit
        ).Message
    )
);

 

and display it on the label

 

StalinPonnusamy_1-1626702380098.png

Or Notify

Form OnFailufre: Notify(
    First(
        Errors(
            'Aisle Assignment',
            EditForm1.LastSubmit
        ).Message
    ).Message
);

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,595)