cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Limit characters on text input field
Limit characters on text input field
February 5, 2013
12:50 am
Topher
Guest

Does anyone know of a way to limit how many letters a person can type in a desired field?

February 5, 2013
1:22 am
Topher
Guest

Nevermind, found it

February 5, 2013
5:46 pm
Topher
Guest

170 chars max|your text|^.{1,170}$
  • This will set the fields' label to: 170 chars max
  • Provide a default text: your text
  • And apply the regexp logic: ^.{1,170}$
    Which essentially says: any character from start (^) to finish ($) is required at least once (1), and max 170 times
Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3714

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5311

Posts: 18673

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)