I’ve done some digging through the forum but can’t find something that fits this specific need. Here goes…
I’ve got two CMS collections “Ad Types” & “Podcasts”. “Ad Types” will remain static but “Podcasts” will be populated with new CMS items regularly. My goal is to surface these CMS items from each of these collections and allow users to select from these items in their form submit action.
I’m using javascript adapted from this forum post to capture the dynamic values:
NOTE: The above code is for the Podcasts CMS Collection
So far, I’ve been able to capture and send based on the custom JS but on form submit I cannot capture & send the selected/checked values. Instead, I get:
In general you should know javascript to solved this issue + maybe change webflow tree structure = This is more a freelancer mission (Hard to give you solution her).
Example for select menu -or- radio:
On webflow:
Put inside your form embed-html - add feild code - and for this feild add any value you want (From Javascript var for example). So first solve your idea/code outside of webflow (Codepen for example).
You can capture dynamic content in forms no problem at all. Take a look at the + Add Field link in the top right-hand corner of the HTML Embed Editor. If you’re on a dynamic page, you can add custom values using that link, and then hide the embed if needed.
I have a more basic version setup here, feel free to clone/copy how you need to:
Thanks for sharing that @magicmark! I’ve been able to submit the dynamic values without any issue. The challenge is I can’t submit the selected value when I surface CMS items as radio buttons or checkboxes. It always submits the last CMS item that appears in the list even if it isn’t selected.
You know your way around Webflow forms @ChrisDrit appreciate you taking a look!
Have you tried pulling CMS items into a form using radio buttons/checkboxes? Every time I submit a form that’s setup like this it submits the last item that appears even if it isn’t selected.
Starting at the 24:04 minute mark you can find a video walk through with descriptions along the way
Checkout the link I posted above at that minute marker, you’ll see an example of me using 3 checkboxes, submitting the form, Zapier picks it up and updates a live cms item from which ever combination (or none at all) is checked.
Let me know if you have any problems/questions, happy to answer them!
Okay, I’ll give the video another viewing. When I first watched it I’m not certain it addressed my specific use case but I’ll be a bit more meticulous in watching.
Any chance you’re up for a zoom call so I can dive into some of my specifics?
For whatever reason radio buttons & checkbox form fields that are based on CMS collections always send the last item that appears even though the user is selecting other items.
It’s got me scratching my head quite a bit but I’ll take a look at what @PixelGeek did in this video to see if it works for me! If you’ve got any ideas or if this is suddenly an itch you need to scratch let’s chat!