• Resolved Igor Lopasovsky

    (@igorlopasovsky)


    Hi Takayuki,

    Quick question. I am using <input type=password> in the form (as there is no specific field for passwords). Everything works great, except the validation. I set minlenght property but it’s not being enforced. Here is the sample:

    <input class="wpcf7-form-control wpcf7-text wpcf7-custom-password" type="password" name="password" minlength:8 placeholder="New password (minimum 8 characters)" />

    Is there any way how to force text validation on custom input tag?

    Many thanks for help.

    https://ww.wp.xz.cn/plugins/contact-form-7/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter Igor Lopasovsky

    (@igorlopasovsky)

    Thank you very much Takayuki. I already found the first article but second is very helpful.

    Thread Starter Igor Lopasovsky

    (@igorlopasovsky)

    Takayuki, I successfully implemented custom form-tag, even my own validation filter. Everything is working perfectly, the only problem is that validation error is not displayed under the custom form-tag. Only the general alert under the form. All built-in tags are working.

    I believe that span with wpcf7-not-valid-tip class is not added automatically to this custom form-tag. Is there any workaround for this?

    Thank you very much for help.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘validation on input tag’ is closed to new replies.