cforms II User Forum

Registration is currently disabled.


Login form protected by Login LockDown.

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
Custom error messages
July 26, 2007
6:48 pm

Does cforms support field specific error messages?

I'd like to provide the user with more information in addition to the visual change from the added class and the generic error message. For example, take a form that requires a name, email address and image verification. If a user submits an empty form they would see something like the following:

[Generic error message]
» [name specific message]
» [email specific message]
» [image verification specific message]

Does the current release supposrt such an option? if not do you see it as  a possibility for future releases?

Thanks in advance.  

July 26, 2007
7:07 pm
Munich, Germany
Forum Posts: 6400
Member Since:
March 6, 2005

This is currently not supported, but I'll keep it in the back of my head for a future release.

What I can see as an easy option is to extend the fieldname syntax to include a optional err message, eg.:

fieldname|default val|regexp|err msg

This should be fairly easy to add, perhaps I'll include it in a beta v5.4. If you're interested, I can mail you a copy once it's incorporated.

July 26, 2007
8:33 pm

That would be excellent Oliver. Thank you very much again!

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
25 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3758

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5356

Posts: 18736

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

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

Administrators: Oliver (6400), Nicky (3)