Streaming live at 10am (PST)

Dynamic Embed using Box.com


#1

Hey Webflow Community,

I'm trying to use the dynamic embed technique with a Box.com embedded document (this is a similar idea to the dynamic embed using eventbrite which I've done successfully before). I thought the process would be similar for using the box embed, but when I go to make the unique string a variable and pass it into the embed code, it won't render. If I just paste the raw embed code in without trying to make it dynamic, then everything works fine. It's just the act of making it dynamic that is somehow breaking it.

The raw embed code is below:

<iframe src="https://app.box.com/embed/preview/oxolqtgxiuot42f616n9ls92slhat3i8?theme=dark" width="541" height="700" frameborder="0" allowfullscreen webkitallowfullscreen msallowfullscreen></iframe>

I've identified the unique ID as oxolqtgxiuot42f616n9ls92slhat3i8

When I go to make that a variable in the CMS and pass it into the embed code dynamically, that's where it fails to render, even when fully publishing the code to the .io test site.

This is the embed code where I'm passing in the variable.


#2

Hi @trevorgoss, thanks for your post. Would it be possible for you to share the published site link? It will be easier to see if there are any errors in the console.

Thanks in advance!


#3

@cyberdave sure thing.

http://st-ignatius-4cec83.webflow.io/

https://preview.webflow.com/preview/st-ignatius-4cec83?preview=97f08cf6dbd83c962453e68e30e26a36


#4