Docs & Support

Learn about all the Formidable features and get support from our amazing customer success team.

FormsForm Settings
Customize HTML

Customize HTML

The Customize HTML settings allow you to customize the HTML for individual fields in your form. These settings can be found by going into your form and selecting Settings → Customize HTML. This gives you access to the HTML for each field in your form, excluding certain field types.

Form Classes

If you would like to add a CSS class to your form, go to your Form Settings → Customize HTML. In the Form Classes box, insert a CSS class name. Customize HTML Form Classes

The class will be added to the form tag. If you would like to add multiple classes, separate each class with a space.

Show success below form

By default, the form success messages shows above the form. If you would like the message to show below the form, add frm_below_success in the Form Classes box. Please see the frm_message_placement hook for further customization.

Remove success message styles

In some cases, the form success messages is used to show a response rather than the typical success message. If you are showing the form with the success message, you can remove the green styling. Add frm_plain_success in the Form Classes box.

Formidable Forms makes advanced site building simple. Launch forms, directories, dashboards, and custom WordPress apps faster than ever before.

Customize fields

Each field in your form has a corresponding box in the Customize HTML settings which is populated with the HTML used to design that field. You can move the field description, hide option labels, add input attributes, etc. by adding HTML or CSS to the boxes. The buttons in the Customization panel (right sidebar) can be used to quickly add shortcodes to a field.

Move the description

If you add a description to a field, it will automatically appear underneath the field. Customize HTML Field Description If you would like to put the description on top of a field, follow the steps below.

  1. Go into your form's Settings → Customize HTML.
  2. Find the box for the field with the description you would like to move.
  3. Move this code above the [input] code:
    [if description]<div class="frm_description">[description]</div>[/if description]

    Customize HTML Move Description

Other field elements, such as the label, may be moved in this same way.

Edit radio/checkbox options

To edit individual options for radio buttons or checkboxes, follow the steps below.

  1. Go into your form's Settings → Customize HTML.
  2. Find the box for the checkbox/radio button field you want to modify.
  3. Change [input] to [input opt=1], [input opt=2], continuing until you have defined each option for this field. The Single Option button in the Customization panel (right sidebar) can help you break out these options more quickly. Customize HTML Input opt=x
  4. If you have added an Other option, you can change it to [input opt=other_2] instead. Replace other_2 with the name value in the field found by inspecting the element in your browser developer console. Customize HTML input Options other
  5. You can add images or text between these options as shown below.
    <img src="/wp-content/uploads/2013/04/yellowflowers.jpeg"/>
    [input opt=1]
    <div class="my_class">An assortment of daisies and lillies</div>
  6. Add as many options as needed. Customize HTML input opt=x Flower

Hide option label

Follow the steps below to hide a radio/checkbox field's option label.

  1. Go into your form's Settings → Customize HTML.
  2. Find the box for the checkbox/radio button field you would like to modify.
  3. Change [input] to [input label=0] Customize HTML Input Label=0

Add labels to a grid

If you are using frm_grid classes and would like to add a label above each column, follow the steps below.

  1. Add the following class to Formidable → Global Settings → Custom CSS page or to your theme's style.css.
    .frm_grid_header {width:75%;float:right;font-weight:bold;}
    .frm_grid_header div{float:left;width:17%;text-align:right;}

    You can adjust the width as needed.

  2. Next, go into your form and add an HTML field above the first row of the grid.
  3. Insert this code in the HTML field:
    <div class="frm_grid_header"><div>Label 1</div><div>Label 2</div><div>Label 3</div><div>Label 4</div><div>Label 5</div></div>
  4. Add or remove divs as needed so you have the correct number of labels. Customize HTML Create Grid

There are several other ways to accomplish this same thing. Another approach would be to use a table instead of multiple divs.

Add a dollar sign in front of a field

This option no longer requires HTML changes. Learn how to add a dollar sign.

Add an icon after a field

This option no longer requires HTML changes. Learn how to add an icon after the field input.

Add custom input attributes

You may add custom attributes to a field input in the Customize HTML settings. This allows you to modify your forms so they work better with screen readers (typically for visually impaired users).

  1. Go into your form's Settings → Customize HTML.
  2. Find the box for the field you would like to modify.
  3. Change [input] to [input aria-required="true"] if your field is required and you want to let the screen reader know that it's required. You may replace aria-required="true" with any custom input attribute.

Set cursor location on page load

If you would like to make the cursor appear in a specific field when your form is loaded, follow the directions below.

  1. Go into your form's Settings → Customize HTML.
  2. Find the box for the field where you want the cursor to appear by default.
  3. Change [input] to [input autofocus="autofocus"].

Now, when the form is loaded, the cursor will be in this field so the user can start typing without having to click in the field first. Please note: Some browsers do not support the autofocus attribute.

Control tabbing

Use the tabindex attribute to control where the cursor goes when the user hits the Tab key.

  1. Go into your form's Settings → Customize HTML.
  2. Find the box for the field where you want the user to start.
  3. Change [input] to [input tabindex="1"].
  4. Find the box for the field where you want the user to go next (when they hit Tab).
  5. Change [input] to [input tabindex="2"].
  6. Continue until you have added tabindex="number" to all fields in the order that you want.

Restrict manual entry of date picker

Follow the steps below to force users to select the date by using the date picker and not by manually typing in the date.

  1. Go into your form's Settings → Customize HTML.
  2. Find the box for the date field that you want to modify.
  3. Change [input] to [input readonly="readonly"].

Add a class to a field input

  1. Go into your form's Settings → Customize HTML.
  2. Find the box for the field that you want to modify.
  3. Change [input] to [input class="any-class"]

Turn off browser autocomplete

  1. Go into your form's Settings → Customize HTML.
  2. Find the box for the field that you want to modify.
  3. Change [input] to [input autocomplete="off"]

Add custom div

You can add a custom div to a field input in the Customize HTML settings without breaking the grid CSS style rules by adding a class to the custom div.

  1. Go into your form's Settings → Customize HTML.
  2. Find the box for the field where you would like to add the custom div.
  3. Insert the custom div in the HTML field.
    <div class="frm_fields_container">[input]</div>

Automatically convert typed text to uppercase

Use the following example to automatically convert text input to uppercase in a form field in real-time.

  1. Navigate to your form's Settings → Customize HTML.
  2. Locate the HTML box corresponding to the text field you want to modify.
  3. Modify the input tag by replacing the existing [input] tag with the following:
    [input onkeyup="this.value = this.value.toUpperCase();"]

Display specific country flags in the phone field

Filter the flags that pop up in the drop-down in the phone field when using the International format.

  1. Click on Settings in the form editor.
  2. Click on Customize HTML.
  3. In the phone field, replace [input] with [input data-only-countries="us,ca"]
When only one country is added, the dropdown is replaced with just the flag icon

Set a custom country order in the phone field

Set a custom country order in the drop-down.

  1. Click on Settings in the form editor.
  2. Click on Customize HTML.
  3. In the phone field, replace [input] with [input data-country-order="us,ca"]

Reset a field's HTML

If you would like to reset a field's HTML back to its default HTML, follow the steps below:

  1. Go into your form's Settings → Customize HTML.
  2. Find the box for the field you would like to reset.
  3. Clear out the box(es) you want reset, then save your form.

The box will be refilled with the default HTML after you save your form.

After Fields

Adding custom JavaScript to your WordPress form in the After Fields section is an easy way to improve your form's interaction. Test the code carefully to ensure it works as expected across all scenarios. Follow the steps to get started. Customize HTML After Fields section

  1. Access Form Settings: Log in to your WordPress admin panel and navigate to the form you want to customize.
  2. Open Customize HTML Tab: Within the form settings, click on the Customize HTML tab. This is where you can edit the form's structure and appearance.
  3. Add JavaScript Code: Scroll down to find the After Fields section. Then paste your JavaScript code here. This section allows you to implement custom scripts that run after the form fields are displayed.
Was this article helpful? *

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

In this article

    We have a small, but amazing team of dedicated people who are committed to helping you achieve your goals and project requirements.


    Copyright © 2025 Strategy11, LLC. Formidable Forms® is a registered trademark Strategy11, LLC.

    Join 400,000+ using Formidable Forms to create form-focused solutions fast. Get Formidable Forms