Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, are you talking about changing the size of a field or the number of characters allowed to enter in a field?

    Thread Starter rolyestemonio

    (@rolyestemonio)

    @mbrsolution yes i am talking about it. I am planning the field will return an error if the input is not equal to the given numbers. Example maximum length is 10. If the user input below 10 it will give an error.

    • This reply was modified 8 years, 11 months ago by rolyestemonio.

    Hi, to limit the number of charecters allowed in a field add a value to the following area Max length: in the field settings.

    The following is the description added by the developer in the plugin.

    Max length:
    Use to limit the number of allowed characters for a text field. The limit will be checked when the form is posted. Can be used for text, textarea, and password field types. This will not change the size of the field on the form. To change that, use the size attribute (see below), or your add a width attribute to the “Input text fields” setting on the Styles tab.

    Let me know if you need more help.

    Kind regards

    You have to use the regex feature

    /^(0?[1-9])$/

    explanation:
    ^ match start of the string
    (0? optional zero
    [1-9]) any number between 1 and 9
    $ match end of string

    Thread Starter rolyestemonio

    (@rolyestemonio)

    @mbrsolution I already try that it will submit less than 10.

    @mikechallis thanks it works.

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

The topic ‘Minimum Length and Maximum’ is closed to new replies.