I am trying to open up a modal ‘contact us’ form with Shadowbox using a Freeform form. Could someone help me to understand how to ‘pass’ the Freeform form to Shadowbox? The code I have won’t load and IE8 indicates that I have an ‘unterminated string constant’ at a location which corresponds to the end of the first line of the ‘embedded’ freeform code. Freeform code mixes both /”/ and /’/ to encapsulate strings and this may be a factor?
I’m using EE version 2.2.1, hosted by Enginehosting. My Freeform ‘contact us’ form is functional. I believe I have the appropriate libraries installed because I can make the thing work as long as I don’t try to “embed’ any EE code.
I am using the jQuery version of Shadowbox.
Here is the code:
As you can see, I’m trying to pass the Freeform form as HTML text to the Shadowbox player which is to play it with the ‘html player.’