Sted Logan
Sted Logan
Offline
Hi again, where or how can I limit user input text option on a buy product page?
lets say maximum letters/numbers 21 total.

sort of like this:


any tips? thanks
In General
Wednesday, March 01 2017, 05:38 AM
Share this post:

Accepted Answer

Sunday, March 12 2017, 12:13 AM - #Permalink
Unfortunately, that is not possible atm Sted.
The reply is currently minimized Show
Responses (2)
  • Accepted Answer

    Sted Logan
    Sted Logan
    Offline
    Wednesday, March 01 2017, 05:39 AM - #Permalink
    sorry...
    input type="text" name="quantity" min="1" max="21"
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, May 13 2017, 02:26 AM - #Permalink
    Can't you use jQuery or simple Javascript?
    I mean, what if you insert a jQuery form validation plugin into your template's head section.
    Then create your own myscripts.js file and link to it within the head of your template.
    And then use an onFocus, blur or onChange like javascript tag to check the input's content.

    Here are some jQuery form validation plugins:
    https://www.sitepoint.com/10-jquery-form-validation-plugins/
    The reply is currently minimized Show
Your Reply