help center

Search
Close this search box.
On this page

Add custom labels and values to a form’s fields

Last Update: April 11, 2024

In some cases, you may need to differentiate a field’s label – what the user sees- and its value – the information submitted by the visitors. For instance, a form may let users select either a Blue shirt, Red shirt or Yellow shirt. However when the user actually chooses the color of shirt they want, its SKU code is sent to the warehouse for processing. In this case, blue, red and yellow shirts are the label and the SKU code is the value.

In Select, Radio button and Checkbox fields, you can use the pipe character to separate between labels and values. On most keyboards the pipe character is on the same key as the backslash. 

Add the label and value

To add a custom label and value to a field:

  1. Create a form with either a Select, Radio button or Checkbox field.
    image 16 Add custom labels and values to a form's fields 1
    In this example we created a Select field with the label I want a. This field will let visitors select either a Blue Shirt, Red Shirt or Yellow shirt. For more information about creating forms, see Form widget.
    image Add custom labels and values to a form's fields 3
  2. In the panel, click the Select field to open it if it’s not open.
    image 17 Add custom labels and values to a form's fields 5
  3. For this example, in the Options box enter:
    • Blue shirt|SKU-1: ABC-13245-S-BL
    • Red shirt|SKU-2: 01-220-GB-M
    • Yellow shirt|SKU-NIC-RN4-15V

When visitors open this field they will see the following items in the dropdown menu:
image 18 Add custom labels and values to a form's fields 7

However, when they make a selection, the SKU is sent to the ecommerce system.

Have more questions? We’re more than happy to assist.

Link is copied to clipboard!
On this page

Is this article helpful?

Share this article

Stuck?
Our Elementor Expert is Ready

Book a 45-min video consultation call with an Elementor expert and elevate your site!