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

sv3n
11.7k7 gold badges44 silver badges75 bronze badges
asked Jun 16, 2016 at 11:56
2
  • this seems correct, can you share a link OR full form's HTML that contains this element ? Commented Jun 16, 2016 at 12:16
  • Did you able to find any solution for this issue? if so can you please update here. Commented Oct 22, 2018 at 15:14

1 Answer 1

6

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">
answered Jun 16, 2016 at 12:24
1
  • when using validate-digits also its not working Commented Jun 16, 2016 at 12:42

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.