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

Go to page - Data #377

Closed
thenexus00 opened this issue Jul 29, 2020 · 6 comments
Closed

Go to page - Data #377

thenexus00 opened this issue Jul 29, 2020 · 6 comments
Labels
status/stale Marked as stale due to inactivity

Comments

@thenexus00
Copy link

You can select a page for the go to page after form submission. The issue still in Umbraco forms is a core method to then render any of the data from that form submission onto the page.

You can not even pass variables into the "To to page" option on the form builder.

Use Case:
Product enquiry, different product names so rendering the "You enquired about xxx product" on the thank you page

@nul800sebastiaan nul800sebastiaan added the state/needs-investigation This requires input from HQ or community to proceed label Aug 3, 2020
@ronaldbarendse
Copy link

Forms stores the current FormViewModel in a TempData variable umbracoformsform, but I'm not sure that still exists when you're redirected to this page.

Having the content ID of the page where the form was entered and/or the entry GUID (if it's stored in the database) would be a great feature indeed!

@ronaldbarendse
Copy link

After some digging, I've found a way to get the current (submitted) record ID: TempData["Forms_Current_Record_id"]. You can parse this to a GUID, get the record and then use the UmbracoPageId to get the content page the form/record was submitted on...

@umbrabot
Copy link

Hiya @thenexus00,

Just wanted to let you know that we noticed that this issue got a bit stale and might not be relevant any more.

We will close this issue for now but we're happy to open it up again if you think it's still relevant (for example: it's a feature request that's not yet implemented, or it's a bug that's not yet been fixed).

To open it this issue up again, you can write @umbrabot still relevant in a new comment as the first line. It would be super helpful for us if on the next line you could let us know why you think it's still relevant.

For example:

@umbrabot still relevant
This bug can still be reproduced in version x.y.z

This will reopen the issue in the next few hours.

Thanks, from your friendly Umbraco GitHub bot 🤖 🙂

@umbrabot umbrabot added the status/stale Marked as stale due to inactivity label Aug 21, 2021
@umbrabot umbrabot removed the state/needs-investigation This requires input from HQ or community to proceed label Aug 21, 2021
@AndyButland
Copy link

Re-opening as still valid.

Something towards this has been implemented by the solution discussed in this issue comment, where a TempData value will exist that holds the submitted form Id. But that doesn't really help you get the page or record Id, so am thinking we could add them as other variables.

@AndyButland AndyButland reopened this Aug 21, 2021
@umbrabot
Copy link

Hiya @thenexus00,

Just wanted to let you know that we noticed that this issue got a bit stale and might not be relevant any more.

We will close this issue for now but we're happy to open it up again if you think it's still relevant (for example: it's a feature request that's not yet implemented, or it's a bug that's not yet been fixed).

To open it this issue up again, you can write @umbrabot still relevant in a new comment as the first line. It would be super helpful for us if on the next line you could let us know why you think it's still relevant.

For example:

@umbrabot still relevant
This bug can still be reproduced in version x.y.z

This will reopen the issue in the next few hours.

Thanks, from your friendly Umbraco GitHub bot 🤖 🙂

@AndyButland
Copy link

This can be kept closed now I believe.

For reference here's the documentation link for retrieving the form and/or record Id.

And a blog post on the topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/stale Marked as stale due to inactivity
Projects
None yet
Development

No branches or pull requests

5 participants