Support » Plugin: WC Fields Factory » client side validation

  • Hi!

    I’m using client-side validation. However, I want to add other validations beyond the default validation “field can not be empty”. I included validations in the footer but it did not work. I do not want to do the wrapping in add_to_cart_validation with “wc_add_notice” because the fields are cleared after the message, and I want the values ​​not to be cleared.

    Which file is this validated? Where can I change to customize text fields and their validations?

Viewing 1 replies (of 1 total)
  • Hi!

    I need create a text field (or number field with input mask). The field contains a number with 11 numeric digits and the following mask: 999.999.999-14.

    The mask is ok. But I need to do a validation for the last 2 digits, which are checking the first 9 digits. I have a jquery function ready for this.

    How do I add this validation function in ampo, in the same way as the required field validation?

    That is, by clicking the XXX button I want the program to check:

    1. If the field has been filled (ok)
    2. My custom validation function

Viewing 1 replies (of 1 total)
  • The topic ‘client side validation’ is closed to new replies.