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

Prevent submit form to erase form fields after submitting

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?

1 ACCEPTED SOLUTION

Accepted Solutions
venka91
Super User
Super User

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

View solution in original post

2 REPLIES 2
venka91
Super User
Super User

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

Anonymous
Not applicable

@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.

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (1,675)