Embed a Form on Your Webpage

Prev Next

Forms can be embedded on websites using the auto-generated and provided embed code.

Important Notes

Accessing the Website Script

  • Form: When accessing the forms script from the form the environment, app, and form IDs are prefilled into the script.

  • SDK: Generating the script from the SDK allows you to configure the environment, app, and form IDs specifically.


Embed from the Form Summary

  1. Sign in to your site

  2. Navigate to Forms and select the form you want to embed The Forms tab in the left navigation menu with a form selected on the page.

  3. Select the Summary tab

  4. Click the embed button next to the Form Link Embed this form on your webpage icon highlighted next to the form link.

  5. Click the Copy button next to the Form Embed Script Code snippet for embedding a form with the copy icon highlighted.

  6. The Navigation behavior configured on the form will be used for the submissionRedirectUrl and the cancelRedirectUrl lines. You can optionally change these to a URL you wish to send your users to. You will need to remove the // before the submissionRedirectUrl and the cancelRedirectUrl lines in order for it to work in your embed.Code snippet for embedding a form with optional URL redirection settings highlighted.

    Note:

    The paymentReceiptUrl and paymentFormUrl fields are only required if the form takes payments.

  7. Paste the script onto your website
    Code snippet for integrating OneBlink Form with various configuration options.

    Important Note:

    If you are using an optional URL (such as submissionRedirectURL), you will need to remove the // before the code in order for it to work in your embed.
    Highlighted URLs for pet license renewal submission and cancellation in the embed.


Embed from the Software Development Kit

  1. Sign in to your site

  2. Navigate to the Workspace menu and click Settings
    Navigation menu showing 'My Workspace' and 'Settings' options.

  3. Expand Developer Tools and select SDKDeveloper tools section showing SDK.

  4. Select the Generate Script button in the Forms CDN card The Generate Script button on the Forms CDN card.

  5. Select the specific Environment, App, and FormForm script generation for pet license renewal in knowledge management administration.

  6. Click CopyCode snippet for embedding OneBlink form with highlighted script and selector elements.

  7. Paste the script onto your website
    Code snippet for integrating OneBlink Form with various configuration options.

    Important Note:

    If you are using an optional URL (such as submissionRedirectURL), you will need to remove the // before the code in order for it to work in your embed.
    Highlighted URLs for pet license renewal submission and cancellation in the embed.