Viewing 3 reply threads
  • Author
    Posts
    • #6361

      I’ve just tested the demo text fields in the demo settings pages to see if there’s some sort of limit to how much can be entered into a single field and found that there’s none. Personally, I’d love to control how much a user can enter into any given field as a safe guard. I wouldn’t want a user to enter 200 characters into text field where I expect him/her to enter just about 15 characters. For example, I have text field for the Headline and I don’t want the user to enter more than 25 characters into this field, is there a way I can do this with Piklist? I don’t seem find it in the validation and field parameters tutorials in the documentation. Any help is highly appreciated.

    • #6363
      Steve
      Keymaster

      You can use the standard HTML5 attribute maxlength.

      "attributes" => array (
        "maxlength"  => "10"
      )
      
    • #6364

      Thanks a lot Steve. I’ve tested it and its actually working perfectly.

    • #6365
      Steve
      Keymaster

      Great! Closing ticket.

Viewing 3 reply threads
  • The topic ‘Is there a way to limit/control field entries?’ is closed to new replies.