Integrating the form into your Squarespace website shouldn't be too difficult, but it can be tricky. Squarespace doesn't officially offer support for getting third party libraries to work, so if you have any issues with it, please let us know and we'll do our best to get it back up and running for you.
There are a few steps you'll need to take to get the library to work on your squarespace site: Page Header Code Injection (custom CSS, standard CSS, and the JavaScript library), and injecting some HTML code into a section of the site.
Warning: The inquiry form will not load if Ajax is enabled on your site/template.
**Squarespace 7.1+ does not have this feature.
Click here for information about what Ajax is, why it's used, and how you can disable it
on your site.
You should see a page that has an title "PAGE HEADER CODE INJECTION" and an area to paste your code into
Open up a simple text-editor (if you are using a Mac, try "TextEdit", or if you are using a PC, try "Notepad"). You could also try using Microsoft Word or Apple Pages, but one of the text editors is less prone to errors.
Copy and paste the following into the text editor
<style>
/**CUSTOM CSS*/
</style>
<style>
..."css/wave-ortho-inquiry-form.min.css"...
</style>
<script>
..."lib/wave-ortho-inquiry-form.min.js"...
</script>
Then, on the lines where there are ellipses, copy and paste the content from the file found at the path into the field, replacing the whole line with the copied and pasted content. There should be no ellipses in your final code.
Once you've pasted the CSS and JS files into the style and script tags above, copy and paste the contents of that file, into the field found on the Squarespace "PAGE HEADER CODE INJECTION" page. If there is already content in here, paste this at the bottom with a few spaces between the old code.
The second part to this will be to add the HTML to your page that tells the library where you want the form to be located.
When you've clicked "Code", a popup will appear that lets you enter your custom code. This is a simple part, and the one where you'll add your doctor ID and the ID of the element to tell the library that this is where we want the form to be shown. Copy and paste the following into the text area in the Squarespace site, replacing the data-doctor-id value of "test" with the ID assigned to you.
<div id="waveInquiryForm" data-doctor-id="test"></div>
click "Apply", and then "Save" in the top left to test out the form on your page.
Once you've saved your page, the form should appear. If it doesn't appear soon, try refreshing the whole page.
If it works, then save and ensure that it is appearing live on your site and works and looks as expected. Make sure to test it too, to ensure that the form submits and functions completely as you expect it to. Please reach out to us if you are running into problems, and we'd be happy to help out.
Ajax is a method for loading dynamic content without reloading the whole page each time you change pages. This helps your website and each of your pages load more quickly. Here is more information about Ajax as it pertains to your Squarespace website.
Because Ajax loads only the new content that is required each time the page changes, it doesn't load the WaveOrtho Inquiry Form library when a new page is loaded, but only the first time the website is loaded. When Ajax is disabled, the whole page will re-render and the library will be loaded only on the page where the inquiry form is intended to be and it will load the form each time the page is loaded.
Take a look at this documentation page from Squarespace to learn how to disable Ajax on your template.
Take a look at the following pages for more information, or return to the Getting Started Getting Started page.
Check out our sample layouts page for ideas on how the form can be changed to behave differently for different situations, needs, and drive certain behaviors.
Our documentation page is a comprehensive list of customization options that are used to change the behavior of the form.
The troubleshooting page helps you diagnose issues with the form, whether it's with loading or styling.