• Resolved lanxalot

    (@lanxalot)


    Hey folks,

    I’m getting a validation error on a text area field that was working fine until very recently.

    If I make the field required, I get an error to warn that the field is required, even though I have entered information into the field. The form will only send if I remove the ‘required’ setting (not a good solution for me).

    Also I only see one validation method – default. I added the character length validation to functions.php (as per your documentation) and it shows up but doesn’t work.

    Any ideas what the problem could be?

    Many thanks,

    Lanx

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Tomasz WP Desk

    (@tomaszwp)

    Hello @lanxalot

    Let me know if the field is still required (despite its completion) if this custom validation is not assigned to the field. So set the validation to Default and check if the validation error message disappears. If so – then it means that the validation is not pasted as it should.

    Thread Starter lanxalot

    (@lanxalot)

    Hi Tomasz,

    Many thanks for the reply. Yes, the error occurs when the validation is set to default, and if there is no code added for custom validation.

    I only added the custom validation method just now to try and get rid of the error. I don’t require custom validation if the default validation works (which it did before recent updates).

    So it is a basic text area field, I type in some text, and still I get the message: ‘billing_event_details is a required field’ (or similar). When I remove the ‘required field’ setting, the error goes away and the form submits fine.

    Best wishes,

    Lanx

    Plugin Support Tomasz WP Desk

    (@tomaszwp)

    Hello @lanxalot

    I did not reproduce this error on a clean WP installation (Storefront theme + the latest versions of WooCommerce and our plugins). So I assume it is about a different update.

    Please run a quick troubleshooting and see if this behavior is due to a conflict. Install and activate the Health Check & Troubleshooting plugin.

    Troubleshooting steps

    1. Install the Health Check & Troubleshooting plugin and turn on the troubleshooting mode.
    2. Test the plugin using Twenty Twenty or Storefront template. It will help us identify a possible conflict with your theme.
    3. Disable plugins which are not ours or WooCommerce.
    4. Then enable plugins one by one and check if the issue still exists.

    Please let me know about the result.

    Plugin Support Tomasz WP Desk

    (@tomaszwp)

    I am marking this topic as resolved as we have not received any new replies.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Validation error on ‘text area’ field’ is closed to new replies.