Skip to main content

How to embed an opt-in form on your page

Learn how to add an opt-in form (lead capture form) to a Learnybox page or embed it on an external website.


This article explains how to embed an opt-in form, also called a lead capture form, on a page.

Use it when you want to add a form to a Learnybox page with the page editor, or when you want to export the form as HTML and embed it on an external website.


Embed Opt-in Form on Learnybox Page

1. Open Page Editor

  • Access the page you wish to edit using the Learnybox page editor.
    Example for a sales funnel page:
    ​

2. Insert Form Element

  • From the Elements menu on the left panel, expand the Action elements section.

  • Drag and drop the Form element onto your desired page section.
    ​

3. Select Your Opt-in Form

  • After placing the form element, select Opt-in Form
    ​


    ⚠️ The External Opt-In Form form type is used to embed an external form through code. To use a normal opt-in form created in LearnyMail, select Opt-in Form.
    ​

  • Choose your desired form from the list or create a new one directly.
    ​

Note: You can create opt-in forms in two separate ways:

  • From your opt-in form list, accessible via Marketing → Opt-in Forms
    ​

  • Directly in the page editor:

    • Drag and drop the Form element.

    • Choose Opt-in form as the type of form.

    • Click Create new form to build it from scratch.
      ​

Embed Opt-in Form on External Website Page

1. Open the Form Builder

  • Navigate to Marketing → Opt-in Forms

  • Click the name of the form you wish to embed to open the form editor.
    ​

2. Export the Form as HTML

  • In the form builder, click Advanced Settings (top left).

  • Select Export to HTML
    ​

3. Embed the HTML Code

  • Copy the generated HTML code.

  • Paste the code into your external website where you want the form to appear.
    ​

Did this answer your question?