Articles on: Widgets and integrations

How to integrate Typeform

Typeform is a service for creating multi-step forms and surveys. In this guide, you will learn how to embed your typeforms into Unicorn Platform.


Typeform survey in Unicorn Platform


Typeform provides 6 main embedding options:


  1. Standard
  2. Full-page
  3. Popup
  4. Slider
  5. Popover
  6. Side tab



Standard


Use the Standard option to present a typeform seamlessly as part of your page.


Standard option


Step 1/6


After you finish the necessary customization, click on Share tab.


Sharing option


Step 2/6


On the left side of the page, select the Embed in web page option.


Embedding options


Then, on the right side of the page, select the embed type. In this case Standard.


Embedding types


Step 3/6


Next, click on "Start Embedding".


Press this button to get the embed code


Copy the code provided.


Embedding code



Step 4/6


In Unicorn Platform, create a Custom HTML component.


Custom HTML component


Step 5/6


Paste the embed code inside the component.


Pasted embed code


Step 6/6


Wrap the embed code with these HTML tags to adjust the width of your survey:


<div class="container">

Your embed code here

</div>

The whole code should look like this:


Embed code wrapped with HTML tags


Done!


Save the page and open the live version of your website to see the result.



Full-page


Use this option to show people a full-page typeform when your site loads.


Full-page option


Step 1/6


After you finish the necessary customization, click on Share tab.


Sharing option


Step 2/6


On the left side of the page, select the Embed in web page option.


Embedding options


Then, on the right side of the page, select the embed type Full-page.


Embedding types


Step 3/6


Next, click on "Start Embedding".


Press this button to get the embed code


Copy the code provided.


Embedding code


Step 4/6


In Unicorn Platform, create a Custom HTML component.


Custom HTML component


Step 5/6


Paste the embed code inside the component.


Pasted embed code


Step 6/6


In the embedding code, in the highlighted areas shown in the screenshot, add lines #wraper {height: 70vh !important;} and id="wraper". This will make the typeform fill the whole page.



Use these lines to make the Typeform fill the whole page


Done!


Save the page and open the live version of your website to see the result.



Popup


Use this option to make your typeform pop up in the center of the screen.


Popup option


Step 1/7


After you finish the necessary customization, click on Share tab.


Sharing option


Step 2/7


On the left side of the page, select the Embed in web page option.


Embedding options


Then, on the right side of the page, select the embed type Popup.


Embedding types


Step 3/7


Next, click on "Start Embedding".


Press this button to get the embed code


Scroll to the very end of the embed code and copy this part only:


Copy this portion of the code


Step 4/7


Go to Unicorn Platform and paste the code into your Website settings > Custom code > </body> custom HTML code


Unicorn Platform website settings


Step 5/7


Go back to Typeform and copy this part of the code:


Copy the selected part of the code


Step 6/7


In Unicorn Platform, choose a button that will open your Typeform on click. Open this button's settings.


Button settings


Paste the code into Settings > Attributes field.


Button attributes field


Step 7/7


Paste this line of code into the button's URL field: javascript:void(0);


Button URL field


It will prevent the button from opening another page on click.


Done!


Save the page and open the live version of your website to see the result.


Slider


Use this option to make the full-size typeform slide in from the side.


Slider option


Step 1/7


After you finish the necessary customization, click on Share tab.


Sharing option


Step 2/7


On the left side of the page, select the Embed in web page option.


Embedding options


Then, on the right side of the page, select the embed type Slider.


Embedding types


Step 3/7


Next, click on "Start Embedding".


Press this button to get the embed code


Scroll to the very end of the embed code and copy this part only:


Copy this portion of the code


Step 4/7


Go to Unicorn Platform and paste the code into your Website settings > Custom code > </body> custom HTML code


Unicorn Platform website settings


Step 5/7


Go back to Typeform and copy this part of the code:


Copy the selected part of the code


Step 6/7


In Unicorn Platform, choose a button that will open your Typeform on click. Open this button's settings.


Button settings


Paste the code into Settings > Attributes field.


Button attributes field


Step 7/7


Paste this line of code into the button's URL field: javascript:void(0);


Button URL field


It will prevent the button from opening another page on click.


Done!


Save the page and open the live version of your website to see the result.



Popover


Use this option to open the typeform as a floating popover when someone hits the button.


Popover option


Step 1/4


After you finish the necessary customization, click on Share tab.


Sharing option


Step 2/4


On the left side of the page, select the Embed in web page option.


Embedding options


Then, on the right side of the page, select the embed type Popover.


Embedding types


Step 3/4


Next, click on "Start Embedding".


Press this button to get the embed code


Copy the code provided.


Embedding code


Step 4/4


In Unicorn Platform, paste the code into the Website settings > Custom code > </body> custom HTML code.


Unicorn Platform website settings


Done!


Save the page and open the live version of your website to see the result.



Side tab


Use this option to open the typeform as a floating panel when someone hits the button.


Side tab option


Step 1/4


After you finish the necessary customization, click on Share tab.


Sharing option


Step 2/4


On the left side of the page, select the Embed in web page option.


Embedding options


Then, on the right side of the page, select the embed type Side tab.


Embedding types


Step 3/4


Next, click on "Start Embedding".


Press this button to get the embed code


Copy the code provided.


Embedding code


Step 4/4


In Unicorn Platform, paste the code into the Website settings > Custom code > </body> custom HTML code.


Unicorn Platform website settings


Done!


Save the page and open the live version of your website to see the result.


Updated on: 13/09/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!