Project to serve via CDN an embeddable OneBlink form.
Scripts
The script to include comes in a few different ways to allow people to choose the updates/breaks that want. Every deployment will upsert 4 files. If the next deployment is 1.2.3
, the following 4 files will be created if they don't exist, or updated if they do:
1.2.3.js
- for the people who are super cautious and never want there scripts to break (or be updated)1.2.x.js
- for the people who are cautious but like to stay up to date1.x.x.js
- for the people who are cautious but prefer to be up to datelatest.js
- or for the really hardcore who don't care if there website breaks
Examples
OneBlinkForms.render()
Options
Property | Type | Required | Description |
---|---|---|---|
selector | string | Yes | The selector to find a HTML Element to render the OneBlink Form inside. |
formId | number | Yes | The identifier of the OneBlink Form to render. |
formsAppId | number | Yes | The identifier of the OneBlink Forms App to submit the form to. |
submissionRedirectUrl | string | Yes | The URL to redirect the user to after a successful submission. Will have submissionId added to query string before redirecting. |
cancelRedirectUrl | string | Yes | The URL to redirect the user to if they cancel the form. |
googleMapsApiKey | string | Conditional | A Google Maps API Key. Required if the form contains a location form element. |
captchaSiteKey | string | Conditional | A reCAPTCHA Site Key. Required if the form contains a captcha form element. |
externalId | string | No | An identifier to match the form submission with in your system. |
preFillData | Object | No | The data to pre-fill the OneBlink Form. |