I have a CMS with multiple events and each event has it’s own URL (to an external website)
After the user click on one event, I show a pop up form
The user enters the information (name, email), submit it and I take him to a “Thank you” page
On the “Thank You” page I show a button with the URL from the event he clicked on the main page
There are several ways of doing this and I think using cookies should work, but I want to know if you can point me in the right direction.
Hey Michael! Thanks for your insight. It worked very well.
If anyone needs a similar solution, this is what I did:
Since I have all the events on a CMS, I created an HTML embed inside the form, inside the CMS item. The embed have the hidden field with the URL I need on the next page, like this:
Onte the “value” attribute, I added the field “link” that contains the URL on my CMS, using the “Add field”, inside the HTML Embed configuration window.
Then I created a script to get that hidden value and input on the session storage as memetican indicated, as he clicks to send the form. Like this: