Embedding Options

To learn about the different embedding options available, refer to the following instructions.

1. IFRAME

Use this option to embed the form as an IFRAME.

Configuration

<iframe 
    src="https://forms.clevero.co/[uniqueId]/[accessKey]" 
    width="700" 
    height="500">
</iframe>
šŸ“˜

Info

To embed using IFRAME, copy and paste the code into the <div> where you want your form to appear.


2. INLINE

The INLINE option embeds the form seamlessly within the container and automatically adjusts to the container’s dimensions.

Configuration

{
    "elementId": "clevero-forms",
    "formURL": "https://forms.clevero.co/[uniqueId]/[accessKey]",
    "embeddingConfig": {
        "embedType": "INLINE"
    }
}

Key

Type

Mandatory/Optional

Values

Description

embedType

string

Mandatory

INLINE

Inline embedding

colors

object

Optional

{
 primary: ā€œ#00ff00ā€,
 secondary: ā€œ#ff0000ā€,
 background: ā€œ#0000ffā€ \| ā€œtransparentā€,
}

This overwrites the colour config from the form.

It does not update the actual colour config in the online form.


3. POPUP

Use this option to display the form in a modal popup triggered by a button.

A button, with the embedButton text you choose, will be rendered in the target div. When you click the button, a modal with your selected forms will appear.

Configuration

{
    "elementId": "clevero-forms",
    "formURL": "https://forms.clevero.co/[uniqueId]/[accessKey]",
    "embeddingConfig": {
        "embedType": "POPUP",
        "dimensions": {
            "width": 700,
            "height": 500
        },
        "colors": {
            "background": "#ff0000",
            "primary": "#ff0000",
            "secondary": "#ff0000"
        },
        "embedStyle": {
            "embedButton": {
                "text": "Click Me",
                "background": "#E45826"
            },
            "embedModalBackdrop": {
                "blurRadius": 1,
                "brightness": 0.5,
                "contrast": 0.5,
                "backgroundScroll": false
            },
            "embedModal": {}
        }
    }
}

Key

Type

Mandatory/Optional

Values

Description

embedType

string

Mandatory

POPUP

Popup embedding

dimensions

object

Optional

{  
  "width": 700,  
  "height": 500  
}

Defines the width and height of the popup modal.

colors

object

Optional

{  
  "primary": "#00ff00",  
  "secondary": "#ff0000",  
  "background": "#0000ff" or  "transparent"  
}

This overwrites the colour config from the form.

It does not update the actual colour config in the online form.

embedStyle

object

Optional

{  
  "embedButton": {...},
"embedModalBackdrop": {...},  
  "embedModal": {...} 
}

Defines styles for the button, modal, and position.

embedButton

object

Mandatory

{  
  "text": "button text",  
  "background": "#0000ff"  
}

The targets button is embedded on the client’s website.

embedModalBackdrop

object

Optional

{  
  "blurRadius": 1,  
  "brightness": 0.5,  
  "contrast": 0.5,  
  "backgroundScroll": false  
}

Target styles of embed modal backdrop,

blurRadius is defaulted to units in pixels.

embedModal

object

Optional

{ 
//styles 
}

Target styles of the modal are inside which Clevero’s form is rendered.


4. SLIDER

The SLIDER option renders a button that, when clicked, displays a form sliding in from the chosen position.

A button, with the embedButton text you choose, will be rendered in the target div. When you click the button, a modal with the selected forms will slide through your chosen position.

Configuration

{
    "elementId": "clevero-forms",
    "formURL": "https://forms.clevero.co/[uniqueId]/[accessKey]",
    "embeddingConfig": {
        "embedType": "SLIDER",
        "dimensions": {
            "width": 700
        },
        "colors": {
            "background": "#ff0000",
            "primary": "#ff0000",
            "secondary": "#ff0000"
        },
        "embedStyle": {
            "embedButton": {
                "text": "Click Me",
                "background": "#E45826"
            },
            "embedModalBackdrop": {
                "blurRadius": 1,
                "brightness": 0.5,
                "contrast": 0.5,
                "backgroundScroll": false
            },
            "embedModal": {},
            "embedPosition": {
                "position": "slide-right"
            }
        }
    }
}

Key

Type

Mandatory/Optional

Values

Description

embedType

string

Mandatory

SLIDER

Slider embedding.

dimensions

object

Mandatory

{  
  "width": 700  
}

Defines the width of the slider.

Height is not required.

colors

object

Optional

{  
  "primary": "#00ff00",  
  "secondary": "#ff0000",  
  "background": "#0000ff" or "transparent"  
}

This overwrites the colour config from the form.

It does not update the actual colour config in the online form.

embedStyle

object

Optional

{  
  "embedButton": {...},  
  "embedModalBackdrop": {...},
  "embedModal": {...},  
  "embedPosition": {...}  
}

Defines styles for the button, modal, and position.

embedButton

object

Mandatory

{  
  "text": "button text",  
  "background": "#0000ff"  
}

The targets button is embedded on the client’s website.

embedModalBackdrop

object

Optional

{  
  "blurRadius": 1,  
  "brightness": 0.5,  
  "contrast": 0.5,  
  "backgroundScroll": false  
}

Target styles of embed modal backdrop,

blurRadius is defaulted to units in pixels.

embedModal

object

Optional

{  
  // styles  
}

Target styles of the modal are inside which Clevero’s form is rendered.

embedPosition

object

Mandatory

{  
  "position": "slide-right" or "slide-left"  
}

Targets the transition of our slider.

The default position is slide-right


5. POPOVER

When you choose the POPOVER embedding type, a button with the text you specify will appear at one of the following four positions:

  • top-right
  • bottom-right
  • top-left
  • bottom-left

When the button is clicked, a modal with your chosen forms will be rendered.

šŸ“˜

Info:

Make sure there is a div with the same id as your elementId for the popover to display. This is necessary even though the button's position is fixed.

Configuration

{
    "elementId": "clevero-forms",
    "formURL": "https://forms.clevero.co/[uniqueId]/[accessKey]",
    "embeddingConfig": {
        "embedType": "POPOVER",
        "dimensions": {
            "width": 700,
            "height": 500
        },
        "colors": {
            "background": "#ff0000",
            "primary": "#ff0000",
            "secondary": "#ff0000"
        },
        "embedStyle": {
            "embedButton": {
                "text": "Click Me",
                "background": "#E45826"
            },
            "embedModal": {},
            "embedPosition": {
                "position": "top-right"
            }
        }
    }
}

Key

Type

Mandatory/Optional

Values

Description

embedType

string

Mandatory

POPOVER

Popover embedding.

dimensions

object

Mandatory

{  
  "width": 700,  
  "height": 500  
}

Defines the width and height of the iframe.

colors

object

Optional

{  
  "primary": "#00ff00",  
  "secondary": "#ff0000",  
  "background": "#0000ff"  
}

This overwrites the colour config from the form.

It does not update the actual colour config in the online form.

embedStyle

object

Optional

{  
  "embedButton": {...},  
  "embedModal": {...},  
  "embedPosition": {...}  
}

Defines styles for the button, modal, and position.

embedButton

object

Mandatory

{  
  "text": "button text",  
  "background": "#0000ff"  
}

The targets button is embedded on the client’s website.

embedModal

object

Optional

{  
  // styles  
}

Target styles of the modal are inside which Clevero’s form is rendered.

embedPosition

object

Mandatory

{  
    "position": "top-right" or "top-left" or "bottom-right" or "bottom-left", 
    "bottom": "2rem",  
    "right": "2rem"  
}

Targets the position of where we want the embedButton to be.

The default position is bottom-right

Additional values for the bottom and right can be sent through for position bottom-right and likewise for other positions.

šŸ“Œ Need Help?

If you require assistance or encounter any issues, please don't hesitate to contact us for further support.