Skip to main content
Form Fields

Bit Form – HTML Field

Estimated reading: 3 minutes 29 views

Summary: Add a Bit Form HTML field to show notices, links, lists and images in your form: edit the content visually or as HTML code and insert general Smart Tags.

The Bit Form HTML field adds your own formatted content to a form: notices, instructions, links, lists, images or a small table. You write it in a visual editor or as HTML code.

Availability: Bit Form (free).

When to use the HTML field

Use it for content that needs formatting, such as a highlighted notice or a link to your terms. For a plain heading, use the Title field. To show another plugin’s content, use the Shortcode field.

Add the HTML field

In the form builder, open Add Fields, then click HTML in Elements or drag it onto the form. A new HTML field shows the sample text Html Field / Add html content on editor. See the Form Fields Overview for other ways to add fields.

Example: an early-bird pricing notice

Above the ticket choice, a blue notice box lists the early-bird prices. Click the pencil icon next to Content in the field settings to open the Edit HTML Content window. Format text with the toolbar, or write HTML code directly:

  1. Click </> (source code) in the toolbar. The editor switches from the visual view to the HTML code of the content.
  2. Click in the code where the new markup belongs and type it, or paste it with Ctrl+V (Cmd+V on a Mac). Here a link line is pasted before the closing </div>: <p style="margin: 6px 0 0 0;"><a href="https://example.com/tickets">Compare ticket options</a></p>
  3. Click </> again to return to the visual view and check the result.
  4. Click Save. The canvas shows the new content; Cancel discards the changes.
Animation: in the edit html content window the pointer clicks the code button, the editor switches to html code, a line with a link is pasted before the closing div, the code button switches back to the visual view showing the new link, and save updates the notice on the canvas

On the form, the notice looks like this:

Early-bird pricing notice shown by the html element above the ticket type field on the form

Common settings

The HTML field also has the settings that most fields share. They work the same on every field, so they are explained once in Common Field Settings and Field Validation. Click a setting to read how it works:

HTML field settings

Smart Tags

The Smart Tag Fields menu inserts Smart Tags. General tags such as the date or the page URL are replaced when the form loads; see Smart Tags. Tags for form field values are not replaced in the HTML field, because the content does not update while the visitor types.

What code is allowed

Bit Form removes scripts, event attributes such as onclick and javascript: links for security. Styles, images, links and other HTML are kept.

Layout elements show content only. They save nothing with the entry, and they cannot be used as a condition in Conditional Logic, but a rule can show or hide them; see Conditional Logic.

FAQ

Can I add JavaScript?

No. Scripts are removed from the HTML field.

Can I show an answer the visitor typed?

No. Field-value Smart Tags are not replaced in the HTML field. Use a confirmation message to show answers after submission.

Share this Doc

Bit Form – HTML Field

Or copy link

CONTENTS
Before you go
The #1 Affordable Form Plugin in the Industry

10,000+

Trusted Businesses

5 Star Rated

on WordPress.org
shield
No Risk: Get a “No-Questions-Asked” refund if Bit Form is not the right fit for your project.

Subscribe

×
Cancel