• 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • That is an issue for either Gravity Forms or WooCommerce – Gravity Forms Product Add-Ons support forums, not Woocommerce. The latter is paid plugin, so I think you need to request premium support at Woocoomerce.com.

    Thread Starter janrom

    (@janrom)

    Thanks superkot and sorry about the misplaced question.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dropdown validation problem when using price field’ is closed to new replies.