Audit Tool has been designed to be simple and easy to edit. We deliberately did not compress or obscure the embed code as a tool other 3rd party to do that explicitly prevents Digital Marketing Company in Newcastle you from adjusting the code. On the contrary, we expose all the CSS in a simple code block above the HTML embed code so you can be a style object as long as you have a basic knowledge of CSS.

All it takes is adding a few lines of CSS into the relevant sections to customize the look and feel completely. If you have an intermediate knowledge of HTML, you can modify the structure of the form itself. You can also add your own JavaScript function (eg: extra validation form) or you can call other functions / system or onClick shipping activity in the form.

The only customization of recommendation we have is to not make changes to the JavaScript code block as that can lead to errors. Related to this, we recommend that you do not move around too many form elements of their original book as some reference JavaScript depends on the relative positions of objects in the form. In addition, we strongly recommend and encourage you to adjust the shape so that it matches the look and feel of your website. It should feel like a natural part of your site experience and not feel like a tacked-on widget. We recommend this because we see institutions achieve higher levels of lead generation when they customize the right shape to match the style of their website.

Read Also:- Google showing an “online therapy” box in the search results

In this guide we will look at three of the most common advanced customization for Form Embed:

Advanced form validation

Google Analytics Event fired or Facebook during the form submission

Adjusting the field of form or the submit button style

But first, let’s see how the embed code is structured:

Exploring the basic HTML embed code

 Generate the embed code, go to the Settings Embedding tab and press the “Save Settings & Generate Code Embed” Buton. Below is an example of the code base. You will see the first part is CSS, HTML, and finally followed by JavaScript. You have to adjust the first two parts and leaving JavaScript like it. As suggested in the comment line 2, you can move the CSS into your CSS file so all managed in one centralized place.

1. The advanced form validation

The  Form Embed simple form validation has been built-in by default. Activities shipping, JavaScript check all form fields to input a valid and in the event there is an invalid input, it triggers a JavaScript alert messages such as the following:

Form validation

Two of the most popular alternative to adding a strong validation of Forms Embed is a constraint validation and real-time validation:

Validation constraints

Check the CSS-Tricks guidelines on validation constraints that use contextual messages on or around the field form as it comes into focus. This method pre-empts users and guide them toward following the expected input format or in the example below, at least get something into the field:

Input required

Real-time validation

CSS-Tricks also has a great guide to the real-time validation that provides in-field validation to users as they type. It can be as simple as iconography to show the correct input on the form:

2. Firing the Google Analytics or Facebook during the form submission

 Firing tracking events such as GA or Facebook for measurement purpose or re-targeting is a great way to increase traffic using Embed your form. The best way to do this is with a tool Digital Marketing Agencies in Newcastle such as Google Tag Manager Tag Manager itself (GTM). By doing so, you can install the GTM as an empty container on your website and then manage all the tags and pixels of GTM itself without the need to dig into the code each time.