Is it possible to call external javascript code in custom from code?


#1

I would like to call in an external javascript framework called knockout.js and use it to build a bit of dynamic field collection into my forms.

can i include

and then refer to it in my form html code?


#2

Hi Jeff,

Yes it is possible!

I’ve created a sample page here: http://unbouncepages.com/knockout-js/

There are just a few steps:

  1. Copy all the text from the Knockout.js download and paste it into a new script element in the editor. Make sure to add the surrounding script tags.

  2. Put a custom HTML element into your page. I just copied the sample from the front page of the Knockout.js website.

  3. Put custom javascript into a new script element in the editor. Once again I judiciously copied the sample code from the Knockout.js website.

I hope that helps!


#3

Thanks for the help.