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 / What is the return val...
Power Apps
Unanswered

What is the return value of SubmitForm ?

(1) ShareShare
ReportReport
Posted on 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.

Categories:
I have the same question (0)
  • Verified answer
    shoog Profile Picture
    2,164 on at

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

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    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

  • Axal Profile Picture
    945 on at

    Thank you both.

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