Popup Contact Form Toolbar
The toolbar has a phone number which switches to phone button on mobile phones, a popup contact form and an email button.
The tab for the popup form can either be an icon like the one shown for the Signup Form further up this page or a CTA style tab as used in this example.
Phone
The phone item is optional and shows the number on computers and tablets. It switches to a "Call Me" phone icon on mobile phones.
Contact Form
The form uses a CSS Grid layout with the form fields sitting side by side on wider screens and changing to a single column on mobile phones.
Using a grid also allows the item vertical spacing to be easily adjusted using the grid-row-gap property.
No Labels
Instead of labels, the form fields have a placeholder attribute. This specifies a short hint that describes the expected value of an input field. The placeholder text is displayed in the input field before the user enters a value.
Both the form background and the field background have controls for setting the background color and its opacity.
There is an optional paragraph for entering instructions.
Form Fields
The form can have up to 48 fields plus the optional text area which has adjustable height. The fields are added using the EverWeb widget API Assets List.
There are boxes for entering the item name and the placeholder name, a drop down for chosing the input type and a checkbox for required fields.
All the items share the same font family, size and color. The font can be web safe or non web safe or Google hosted with a web safe fallback.
Redirect
When the submit button is clicked, instead of showing a hokey "Message Sent" popup, the visitor is redirected to another page of the site. This could be a "Thank You" page or one where the visitor can download a "Free Gift" which is offered as an incentive to fill out and send the form.
Setup
When the widget is dragged onto the EverWeb design canvas, the form appears below the toolbar so that it is visible during set up and styling. There is a checkbox to hide it prior to publishing where it will appear above the toolbar when the icon or tap is clicked or tapped.
Spam Protected Email Link
The optional email link has separate fields for the email name, domain and domain extension. The @ and the period are inserted using Javascript. This prevents spammers using scrapping software from harvesting the email address.