I have three cards on the home page, each with a subscribe button. When the user presses a button I want to load the sign up page and set a select field to the value that corresponds to the button that they have pressed on the previous page.
I have set each button on the home page to have a data-tier value of tier 1, tier 2, tier 3.
I have a custom interaction that reads the data-tier value and writes it to a cookie called selected_tier with the value of 1, 2, or 3.
On the target page I have an interaction on load that looks for the cookie but I am stuck on how to then get that value into the select field (#select_version)
The select field has options:
Title Tier 1, Value 1
Title Tier 2, Value 2
Title Tier 3, Value 3
The Custom Interaction can set a cookie value, but seems only able to check if the cookie exists or doesn’t exist.