3

I have used the below

<input type="text" value="" class="input-text required-entry validate-number validate-length minimum-length-4 maximum-length-8" title="Purchase Order" name="custom1" id="custom1">

For validating length the maximum-length-8 works. But minimum-length-4 not working. Somebody please let me know if you have any solution

2
  • this seems correct, can you share a link OR full form's HTML that contains this element ? Jun 16, 2016 at 12:16
  • Did you able to find any solution for this issue? if so can you please update here. Oct 22, 2018 at 15:14

1 Answer 1

5

try this

<input type="text" id="custom1" name="custom1" title="Purchase Order" class="input-text required-entry validate-length maximum-length-8 minimum-length-4 validate-digits">
1
  • when using validate-digits also its not working
    – vinothavn
    Jun 16, 2016 at 12:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.