Streaming live at 10am (PST)

HTML Embed issues with character limits

I am trying to embed HTML quiz. I love many aspects of Webflow, however, I find some things like character limits on embeds very frustrating.

I am trying embed a HTML quiz. It has well over the character limit. So, I read this thread:

If I upload my HTML file on Amazon S3, will I be able to embed it in the same way as Dropbox? If so, can someone please help me with script or code needed?

If my file is then what is the exact script I need to insert into Webflow for it to show the file on ?

I tried to do it many ways, but I couldn’t figure it out. Thanks.

Just put the script in a .txt file and upload that to your asset manager in Webflow, then find the link to the file (small arrow next to the file name). Like I’ve done with my test.txt here:

Code is literally what you quoted:

<script src="URL TO THE TEXT FILE" type="text/javascript"></script>
1 Like

Okay, I am going to try that right now. If that works, that would be awesome.

FYI, I figured out how to embed via HTML from Amazon S3/Cloudfront. But your solution could be much better.

Thank you.

I have done what you said, but where the the embed should appear, it’s just a white space, so I assume I made a mistake somewhere along the line. I am wondering, regarding this script:

as I am embedding HTML quiz, should it be:

Or something else?

Thank you.

It’s a bit hard to understand exactly what you’re trying to do without seeing the site preview and at least some of what you’re trying to embed.

If you’re trying to embed an entire HTML file then that’s probably not going to work. I haven’t tried it though. You’re going to need to embed the actual code.

When trying to embed a bunch of HTML you can just put everything in a standard text field and run something like this in the custom code field for the page:

    var embedId = "YOUR TEXT FIELD ID HERE";
    var target = document.getElementById(embedId);
    var targetText = target.innerHTML;

    function decodeField(target) {
        var dText = he.decode(target);
        document.getElementById(embedId).innerHTML = dText;

This should render it out correctly.

Here are the files. They are both the same file. I realise I have not made your job easy. Thank you for trying. It’s not too much of an issue if it’s not possible because I can embed via amazon.

That script depends on an external JavaScript library called he which would need to be loaded to decode the document.

1 Like

My bad - and good catch!

1 Like

I used it again this week so I know it’s available at or

<script src=""></script>

1 Like

Put the highlighted script part:

Into a .txt, upload it like I described before.

Then embed the rest in a normal embed on the site (it’s now under the limit, hooray), but with the .txt put in like mentioned earlier:

<script src="THE URL TO YOUR SCRIPT .TXT HERE" type="text/javascript"></script>

Like so:


1 Like

Thank you. Which Javascript library do you recommend as I will be using a lot of quizzes. The one that people recommend I couldn’t find a link to sign up on their website. Plus no pricing info.

I’ll try it.

That is a resource site that is free to use when you need to include a library in your project.

1 Like