New Shopify Certification now available: Liquid Storefronts for Theme Developers

Add dropdown menu in klaviyo flow

biznazz101
Shopify Partner
304 23 43

Hello everyone, I would like to add a dropdown menu to a klaviyo email message, I have been able to do so, but the button link is not working as they should be.

We would like customer to select the menu option then the button leads to the corresponding link. This is how it currently looks:

biznazz101_0-1687991905230.png

Current code for dropdown:

 

<center><select id="name_b3ak9" name="name_b3ak9">
<option value="=https://shavesafe.dk/tools/recurring/checkout_link?magic=eyJpdGVtcyI6IFt7ImlkIjogNDY3NzYwNTA2MTQ2MDksICJxdWFudGl0eSI6IDEsICJzZWxsaW5nX3BsYW4iOiA2ODg4ODM0MDEwNDEsICJzZWxsaW5nX3BsYW5fZ3JvdXBfaWQiOiAxNjYwNDQyfV19&amp;store_id=161672">Select Plan</option>
<option value="https://shavesafe.dk/tools/recurring/checkout_link?magic=eyJpdGVtcyI6IFt7ImlkIjogNDY3NzYwNTA2MTQ2MDksICJxdWFudGl0eSI6IDEsICJzZWxsaW5nX3BsYW4iOiA2ODg4ODM0MDEwNDEsICJzZWxsaW5nX3BsYW5fZ3JvdXBfaWQiOiAxNjYwNDQyfV19&amp;store_id=161672">Monthly</option>
<option value="https://shavesafe.dk/tools/recurring/checkout_link?magic=eyJpdGVtcyI6IFt7ImlkIjogNDY3NzY2OTAxNDc2NjUsICJxdWFudGl0eSI6IDEsICJzZWxsaW5nX3BsYW4iOiA2ODg4ODM4MjcwMjUsICJzZWxsaW5nX3BsYW5fZ3JvdXBfaWQiOiAxNjYwNjg1fV19&amp;store_id=161672">Every 2 Months</option>
<option value="https://shavesafe.dk/tools/recurring/checkout_link?magic=eyJpdGVtcyI6IFt7ImlkIjogNDY3NzY2OTE0OTExNTMsICJxdWFudGl0eSI6IDEsICJzZWxsaW5nX3BsYW4iOiA2ODg4ODM4NTk3OTMsICJzZWxsaW5nX3BsYW5fZ3JvdXBfaWQiOiAxNjYwNjg2fV19&amp;store_id=161672">Every 3 Months</option>
</select><input type="button" value="Add to Subscription" /></center>

 

When I run this code outside of klaviyo, it works as intended so not sure where I am going wrong.

Any help with this would be very much appreciated, thank you!

Don't hesitate to reach out for more help with your store. SEE OUR TASK STORE or check us out via our profile! FREE TUTORIALS
Replies 0 (0)