Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form Submitted TempData #572

Closed
AaronSadlerUK opened this issue May 20, 2021 · 2 comments
Closed

Form Submitted TempData #572

AaronSadlerUK opened this issue May 20, 2021 · 2 comments

Comments

@AaronSadlerUK
Copy link

It would be nice to have a TempData["SuccessfullySubmitted"] which can be picked up anywhere.

In my case I have a form in a Modal which after submission returns to the current page, but without the modal shown, and so I need to display the success message elsewhere on the page.

@warrenbuckley
Copy link

Fixed by this PR
https://github.com/umbraco/Forms/pull/556

Due for release in 8.8.0

@AndyButland
Copy link

Just to add that the specific change here has been to implement a "POST / REDIRECT / GET" pattern for form submissions, whether you are using the "redirect to page" or "message on submit" behaviour.

For both, we now have a TempData variable with a key of UmbracoFormSubmitted and a value containing the Guid identifier for the submitted form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants