Embed Code

The form code may be embedded in your website in multiple ways such as JavaScript (recommended), as a HTML text/image or as a Lightbox that also has it’s own options.

JavaScript. This is the easiest, safest and most elegant way of embedding the generated code into your webpage. JavaScript publishing will automatically adjust the height of your form, without showing any scrollbars.

Embed Form

iFrame. Inline frames have a specified height. By contrast to JavaScript publishing, with iFrames, your form height will remain the same, while overflowing elements will be reachable through scrolling.

Iframe publishing

Lightbox. You may link to a lightbox form through text links, image links or floating buttons. When published in lightboxes, forms will appear to be floating above the page and will definitely become the center of attention.

  • Lightbox – text link. This code will create a link with a text on your webpage which will popup the form once it’s clicked. Click on Customize text to change the text of the link.
  • Lightbox – image link. This code will create an image as shown in the example of the PublishLightbox section. Click on Customize image to upload another image via an URL.
  • Lightbox – floating button. Use this code to add a floating button with a text on your webpage. Click on Customize button to adjust the text, font style and color of the button.
  • Lightbox – auto popup. This option will auto popup the form on your webpage after a number of seconds you have set in Customize settings. By default, it pops up after 3 seconds.

15 Comments

  1. Jim Gates-Patch says:

    This is great and I have embedded my form into my site. How can I use a “CONTACT AND INFO” link on the home page to direct to my form – does anyone know, please? I know the HTML is:

    CONTACT & BOOKINGS

    but what is the XXXXX?

    • vlad says:

      Hello,

      Thank you for reaching out to us.

      There are several lightbox publishing methods in the Publish section of the form. For your scenario, you can use the text link, image link or floating button one. Also, you will find there the form’s direct link.

      Please let us know at support@123formbuilder.com if you need further assistance.

      Thanks.

  2. Linda says:

    Where do I put the code in my html? You do explain this in your instructions. I’m do a Lightbox – floating button and there’s no explanation of where the code should be inserted in my html.

    • Manu says:

      Hi Linda!

      We don’t mention where the code needs to be inserted in your HTML because that’s entirely up to you.

      Depending on how you structured your website, and where you want your form, you should place it within the tags.

      But we can’t be specific because only you know exactly where you want the button placed.

  3. Marco says:

    Hi, im using your free forms for my website, my question is, how can i implement a google adwords objective code (like a contact us objective when the user click send) inside the html or js. code? ty for your time and impresive web tool!

  4. Dan McAllister says:

    I am using the HTML version of the form to embed into my goDaddy website using the GoDaddy WebsiteBuilder. The reason I used yours (aside from the fact that it looks much better!), is to be able to place a Facebook tracking pixel into the code which will be triggered upon someone clicking on the “submit” button. I have it set up so that when someone clicks submit, a ‘Thank you’ message comes up.

    Where do I place the tracking pixel into the code such that it will work? Facebook says to place it between the tags on a confirmation page, but I am not using a confirmation page, just the Thank you message.

    Thanks for your help!

    Dan

  5. Sameer Siruguri says:

    I would like the form to work with AJAX, so that the submission doesn’t lead to a redirect to 123formbuilder.com – is there some way to achieve that? thanks.

    • Hello Sameer!

      You can redirect your form users to a web page after submission. See the option in SettingsNotificationsConfirmation Settings. You can also redirect your form user depending on the choices they have selected in the form. You’ll find the option in the SettingsRulesForm Rules section of your form. If you do not want the links of your forms to be with 123FormBuilder, upgrade to the Platinum plan and use Domain Aliasing.

      If this is not what you are looking for, please contact our support specialists to assist you and offer the help you need at support@123formbuilder.com

      Thanks!

  6. Sameer Siruguri says:

    Hi – I would like to have the submission of the email address be entirely within an AJAX call, so that it doesn’t lead to a re-direct to 123formbuilder.com after the submission is done. How can I achieve that?

  7. lina says:

    i tried to copy the embedded code into adobe dream weaver cs3, but i didn’t work. what should i do?’

  8. Amanda Sampson says:

    I’m using the HTML version of the code. My page background is black so I have changed the text colour to white for each of the classes. However, the days in the calendar are white when I first import the code prior to editing any styles. Can you please tell me how I can make the calendar dates black?
    Thanks

    • Hello, Amanda! Use Inspect Element of your Internet browser to grab the IDs of the calendar dates. You’ll usually find them as ‘id123-control7559309-1’, ‘id123-control7559309-2’ and ‘id123-control7559309-3’. Next, go to the SettingsThemes section of your form in 123FormBuilder and click on Use custom CSS. Enter the code:
      #id123-control1111111-1, #id123-control1111111-2, #id123-control1111111-3{
      background-color:black;
      color:white;
      }
      Change the IDs with the ones used for your date field inputs. This code will change the color of the input box to black and the color of the input text to white.

      We usually recommend using the JavaScript code and adjust any changes to your form in the Themes section. This way, each time you’ll modify your form on 123FormBuilder, the changes will be automatically applied on your web page.

      For assistance or help, please contact our Support Team at http://www.123formbuilder.com/contactus.html.

      Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *

This website is using cookies. By continuing to browse, you are
agreeing to our use of cookies as explained in our Cookie Policy. OK