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 / Prevent submit form to...
Power Apps
Answered

Prevent submit form to erase form fields after submitting

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I need to submit a form that works fine -> SubmitForm(Form) (I use Dataverse), but after that, I need to send an email that is populated with the fields of form, but when I submit the form, it erases all form fields before the email is sent.

Now I figured that I first send the email, then submit the form, but I don't want to send an email if the submitting ends up with an error...

Is there any setting or anyway how to submit the form without that erases form fields after the submitting?

Categories:
  • Verified answer
    venka91 Profile Picture
    1,119 on at

    Either call the values from the dataset or store the field values to variable and then you may achieve what you want.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @venka91 

    Thank you, I didn't even realize that! I created ClearCollection and took all fields into it, before SubmitForm is executed, and used that collection to populate my email.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard