How To Add A Please Select Option To Custom Dropdown Fields

Custom fields in WooCommerce Wholesale Lead Capture let you add custom fields of many different types to your wholesale customer registration form.

Dropdown fields, in particular, are very powerful for forcing users to select from pre-defined options.

If you wish you can also add a “— Please Select —” which will have no value and therefore not pass validation if you mark the field required.

Instructions:

Add this option to your custom dropdown add your dropdown field via the custom fields interface in the settings (WooCommerce->Settings, Wholesale Lead, Custom Fields sub page) as per normal.

Then, add a new option to the list, giving it a display name such as “— Please Select —” while leaving the Option Value field empty.

Finally, move the field to the top of the list.

Adding a please select field to custom dropdowns

If you want to force users to select one of the options, ensure you have the “Required” setting enabled.

On the front end you will see your field like so (validation failure is shown):

Front end Please Select option

in WooCommerce Wholesale Lead Capture

Solve The Big Three Problems With Wholesaling In WooCommerce

Add wholesale pricing to products   Streamline your ordering   Register & manage wholesale customer

Explore The Plugin Suite  

[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet_bg']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']
[data-image-id='gourmet']