PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Allowing Zero for Required Product Field

  1. We have a form using multiple Single Product Fields, they are all required but when a user enter "0" it won't allow them to submit the form. Anyway around this?

    Posted 12 years ago on Thursday May 24, 2012 | Permalink
  2. David Peralty

    The only way I could think of would be to not make them required because 0 = null = not filled out.

    Posted 12 years ago on Thursday May 24, 2012 | Permalink
  3. Is there another way to manipulate it? I tried using jquery to change any empty values to the word "none" but it won't accept it like that.

    Posted 12 years ago on Thursday May 24, 2012 | Permalink
  4. David Peralty

    That field only allows for number values. Again, I am pretty certain the only way would be to remove the required clause from the fields.

    Posted 12 years ago on Thursday May 24, 2012 | Permalink
  5. What about removing the required field and only having the form submit if (input_1 + input_2 > 0)? Is this possible?

    Posted 12 years ago on Thursday May 24, 2012 | Permalink