Viewing How do I install a 3rd party lead form script
How do I install a 3rd party lead form script
User: Ann Marie J. G. 8 years ago
|
|
I run a website for a restaurant. They want to use a third party vendor (VenueBook) which generates private dining leads. VenuBook provides a script (see below) but I'm not sure how to install it. Any help or suggestions would be appreciated. I will admit I'm rather new at this. PROVIDED SCRIPT: <script type="text/java script" src="//venuebook.com/static/js/build/widgets/leadform/v2/venuebook-lead.js"></script> <script type="text/java script">VenueBook.LeadForm({fields:{"name":"Event name","event_date":"Event date","start_time":"Start time","end_time":"End time","guests":"Guests","budget":"Budget","contact_name":"Contact name","email":"Email","phone":"Phone","flexible_date":"My date is flexible","per_person":["Total","Per Person"],"company":"Company","comments":"Tell us more about your event"},venues:[{"id":1320,"name":"Maya Del Sol"}],layout:"grouped"});</script> |
|
User: James G. 8 years ago
|
|
There are a couple spelling errors in the script. java script is one word. Open the project, go to Widgets, drag the HTML Snippet onto the page, paste that script into the field in widget inspector. Now, in the first 2 lines of code there, simply remove the space between 'java' and 'script'. Click Apply at bottom of field, Save, Publish and it should be working. Make sure it is put on a page with a light color background as what shows up is in black. |
|
User: Roddy 8 years ago
|
|
The space between java and script is a bug in this forum. If you want the script to work locally, you need to add http: in front of the URL in this line... <script type="text/java script" src="//venuebook.com/static/js/build/widgets/leadform/v2/venuebook-lead.js"></script> like this ... <script type="text/java script" src="http://venuebook.com/static/js/build/widgets/leadform/v2/venuebook-lead.js"></script> Make sure you remove the space between java and script! ------------------------------- Roddy Website: http://everwebwidgets.com Contact: http://everwebwidgets.com/ewWidgets-home/contact.html NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own. |
|
User: James G. 8 years ago
|
|
Interesting. All I did to get it working was remove the 2 spaces. | |
User: Roddy 8 years ago
|
|
URLs only work on the server without the "http:". They don't work locally unless you use your local server.
------------------------------- Roddy Website: http://everwebwidgets.com Contact: http://everwebwidgets.com/ewWidgets-home/contact.html NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own. |
|
Post Reply |
You must login or signup to post. |