Dropdown validation problem when using price field
-
Hi
I have a dropdown field in Gravity Forms form. Dropdown have product options and each option have a price field with different price values. The price field is provided from WooCommerce – Gravity Forms Product Add-Ons plugin.
First option in the dropdown is a dummy option which is just an instruction for user to select a product from the dropdown. Field should be invalidated if dummy option is selected option when form is submitted.
When using only Gravity Forms plugin, I can just leave the option’s value field blank and field is invalidated when form is submitted because option doesn’t have a value.
HTML looks like this:
<option value>Select a product...</option>
When using WooCommerce – Gravity Forms Product Add-Ons plugin, option still have value “|0” and field is not invalidated, even when I set option’s value and price fields blank.
HTML looks like this:
<option value="|0">Select a product...</option>
Is there a way to set option value blank and get the dummy field invalidated without adding custom validation code?
- The topic ‘Dropdown validation problem when using price field’ is closed to new replies.