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 / Having trouble submitt...
Power Apps
Answered

Having trouble submitting PowerApps Form

(0) ShareShare
ReportReport
Posted on by 25

Hi Friends,

 

I am running into a issue that I am unable to fix, inspite of multiple efforts. Here is the issue, hopefully you can help fix this

 

I am trying to Submit the below Form.  On the "OnSelect" of the Submit button, I have the following : 

 

1. SubmitForm(EditForfm1) ; --> This is submitting to a SharePoint List and creating that entry there

2. RightSigWorkflowProcess.Run --> In this, I am passing two parameters that this Flow expects. 
      -EditForm1.lastSubmit.ID - I am passing lastsubmit ID, as I need that to send emails to people with details of this specific item etc. 

      -Datacardvalue15.Selected.value  - This is a dropdown field with few options. The purpose is to pass the value selected in this field, to flow so that it can be used in a condition to send email 

3. Then I am using a simple notification

 

The problem I have is with the Datacardvalue15.Selected.value . When I fill this form and hit the submit button, it resets the fields entered in the form. So the submit fails as it cant find the value (As all form fields are reset on submit). 

 

erroronSubmit.png

 

Please help me with this. I have tried various options such as 

 

-Playing around with form mode (edit or new) 

-setting the "onsuccess" property of the Editform to - editform1.lastsubmit OR editform1 (nothing works)

 

Categories:
  • Verified answer
    Shaheer Ahmad Profile Picture
    2,202 Moderator on at

    It seems like the issue you're facing is related to the form fields resetting after submitting the form. This can happen if the form's mode is set to "New" or "Edit" instead of "View" after submitting. To resolve this issue, you can try the following:

    1. Check the Form's Mode: Ensure that the form's mode is set to "View" after submitting the form. This will prevent the fields from being reset. You can do this by setting the Mode property of the form to "View" after the SubmitForm function. Here's an example:

     

    SubmitForm(EditForm1);
    RightSigWorkflowProcess.Run(EditForm1.LastSubmit.ID, Datacardvalue15.Selected.Value);
    Set(myFormMode, FormMode.View); // Set the form's mode to "View"
    Notify("Form submitted successfully");

     

     

    Store the Selected Value in a Variable: If setting the form's mode to "View" doesn't work, you can store the selected value of Datacardvalue15 in a variable before submitting the form. Then, pass that variable as a parameter in the RightSigWorkflowProcess.Run function. Here's an example:

     

     

    Set(selectedValue, Datacardvalue15.Selected.Value); // Store the selected value in a variable
    SubmitForm(EditForm1);
    RightSigWorkflowProcess.Run(EditForm1.LastSubmit.ID, selectedValue);
    Notify("Form submitted successfully");

     

     

    By setting the form's mode to "View" or storing the selected value in a variable before submitting the form, you can ensure that the value is retained and passed correctly to the flow without the form fields resetting.

  • vastestuser Profile Picture
    25 on at

    thank you Shaheer. I will try this and let you know 🙂

  • vastestuser Profile Picture
    25 on at

    Hi Mate, this worked perfectly! Thanks so much my friend.  Appreciate your quick help

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard