Skip to content

Color Picker Field

The Color Picker field in Fluent Forms allows users to select a color using a hexadecimal color format (#RRGGBB). This feature is helpful for customization, branding, or product selection.

This guide will walk you through adding and customizing the Color Picker field in Fluent Forms.

NOTE

The Color Picker field requires Fluent Forms Pro. See Upgrade to Fluent Forms Pro Add-on.

Adding a Color Picker Field

Go to Forms from the Fluent Forms navbar, select the form you want to edit, and click Edit to open the form editor.

NOTE

If you do not have any existing forms, read Create a Form from Scratch or Create a Form using Templates to create a new one.

Editor

Once on the Editor page, click the Plus Icon in your form editor and open the Advanced Fields module. You can also find this option in the right sidebar under the Input Fields tab.

Now, select the Color Picker field by clicking or dragging it and dropping it into your editor.

Adding Color Picker Field

Customizing the Color Picker Field

Once you add the Color Picker field, you can customize it by hovering over it and clicking the Pencil Icon. It will take you to the Input Customization tab on the right, which offers the following customization options.

  • Color Picker Field Options

  • Advanced Options

Input Customization Fluent Forms

Color Picker Field Options

Under the Input Customization tab, you will find various settings options for customizing the field. These options allow you to configure essential aspects of the Color Picker field.

A. Element Label: This is the field title the users will see when filling out the Color Picker field in a form. You can enter any text here to help users understand the purpose of the field.

B. Admin Field Label: The admin field label is a field title displayed only to admin users. You can configure this option to show a different field label for your admin users when they view the form submissions.

C. Placeholder: When the input field is empty, a message is usually shown to the users so they can understand what the field expects from them. This is the equivalent of the HTML input placeholder attribute.

D. Default Value: Using our shortcodes, you can manually set any fixed value in your field and pre-filled your input field dynamically. To get a better understanding, read the Dynamic Default Value documentation.

You can add the default value by clicking the Three-Dot option from the right side.

E. Label Placement: This option allows you to determine the position of the label title where the user will see it. The available options are Top, Left, Right, and Default. All of those are self-explanatory except the Default.

If you select the Default option, it will represent your Global label placement settings.

F. Required: Decide whether users must select at least one option before submission.

Unnamed Fluent Forms

Advanced Options

Advanced settings allow further customization to meet specific use cases.

A. Name Attribute: The input field’s name attribute is the HTML equivalent of the same name. You don’t need to modify this.

B. Help Message: This option allows you to guide your user thoroughly. Add your text here, which will be shown as a help message to the user.

C. Container Class: Use this option to add your custom CSS classes to the field’s wrapper.

D. Element Class: Add custom CSS classes to the input field.

E. Conditional Logic: This option allows you to create specific rules to dynamically hide/show the input field to function conditionally based on your submission values according to your set of conditional logics. To learn more, read Conditional Logic documentation.

Advanced Options

Embed the Form into Frontend

Once you complete the customization, click the Save Form button to save all your changes. Click the Preview & Design button in the middle to see the form preview.

To integrate and display the form on a specific Page or post, copy the Shortcode from the top right side and paste it into your desired Page or post.

Save Color Picker Field

Preview of Added Color Picker Field

Here is the preview of the added Color Picker field under the Form.

Preview Color Picker Field

You’re all set to use the Color Picker field in Fluent Forms.