Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 81ClfC80H6MwGMhL1CKV5V
Power Apps - Building Power Apps
Answered

What is the return value of SubmitForm ?

Like (1) ShareShare
ReportReport
Posted on 12 Aug 2021 16:57:06 by 945

Hello everyone,

 

What is the return value of SubmitForm ? by means to have the result it is succeeded or not ? I have a condition whereby if it is not succeeded, for example because validation failed like one of the required field still left empty, then there is other formula next to the said "SubmitForm" that I do not want to be executed.

 

So I need to have the result value of this SubmitForm function, for the condition of next formula.

 

Thanks.

  • Axal Profile Picture
    945 on 12 Aug 2021 at 17:17:45
    Re: What is the return value of SubmitForm ?

    Thank you both.

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on 12 Aug 2021 at 17:11:48
    Re: What is the return value of SubmitForm ?

    Hi @Axal 

     

    1. LastSubmit gives full information including unique id that generated

    Formname.LastSubmit.

     

    after the dot, you have all column(s) to retrive

     

    2. Another option ClearCollect(ColLastItem, Submitform(FormName));

     

    ColLastItem has all information

     

    #1 can be used on the same button click or OnSuccess

    #2 used only on the same button event where you submitted

  • Verified answer
    shoog Profile Picture
    2,164 on 12 Aug 2021 at 17:09:56
    Re: What is the return value of SubmitForm ?

    SubmitForm will trigger the OnSuccess or OnFailure event of the form object. You would write your code in those events.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

Overall leaderboard
Loading started