@see http://cgit.drupalcode.org/webform/tree/FEATURE_REQUEST_TEMPLATE.html
Confirmation Page URL does not include SID or UUID
Our marketers are having a tough time identifying and pairing our form submissions with Google Analytics data. In version 7, the confirmation URL passed the SID along with it which made it easier for them to pair a conversion with a specific submission. In version 8, I am so far unable to make that happen. I tried to accomplish this using submission tokens (ie:/[webform:id]/[webform_submission:sid]) in the "Confirmation Type" section of by choosing " URL (redirects to a custom path or URL)". That did not work, because it is not a valid URL to begin with.
Am I missing something, or is this new way of formatting the confirmation URL simply the new way things are done?
Please point me in the right direction, if there is such a path to that solution.
If there is a way to accomplish this within the interface, I would very much appreciate some pointers. If not, perhaps this could be a feature to add down the road.
-thanks,
Eric
Comments
Comment #2
jrockowitz commentedIn D8 a unique token is being passed to the confirmation page. Using a token is more secure than a sid because people can't guess it.
You can use tokens in the confirmation URL to pass the sid to the confirmation page. Please see the attached webform.
Comment #3
ericroks commentedconfirmation_url: '[webform:url]/confirmation?sid=[webform_submission:sid]'
the above line will generate a dynamic URL that reflects the original URL as well as the Submission ID. Is that correct? And if so, where do i put it?
I thank you in advance.
Comment #4
jrockowitz commentedWrong image
Comment #5
jrockowitz commentedComment #6
ericroks commentedThank you very much. This works nicely.
Comment #7
jrockowitz commentedComment #8
bwoods commentedThank you for documenting this - I needed the exact same thing but had the syntax wrong for the token value.
Comment #9
coxy0001 commentedAm really sorry for posting this here, but this is the closes forum topic I can find and thought you may be able to help or point me in the right direction.So, webform confirmation page =
http://localhost/sitename/form/contact/confirmation?sid=5f9902db-8f19-42...
Email notification that gets sent:
http://localhost/sitename/admin/structure/webform/manage/contact/submiss...39?sid=5f9902db-8f19-4253-8de5-e91f2127c058
How do I "remove" the webform submission number (39 - bolded above). The problem I'm facing is that anyone can simply change this number and see a form submission.
Comment #10
jrockowitz commentedThe attached webform display the view and update token URL on the confirmation page. When testing the view and update URL the sid and token must match. Users are NOT able to change the sid the view other submissions. If you want users to access view/update submission URLs without the sid being visible, you are going to have to write a custom controller that uses just the token.