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 Related Topics
Required Fields
Tags: ***
October 13, 2013
12:02 am

Hi, I've researched this issue for a few days now and just gave up on trying to solve it myself :-)

I have a cfrom with 3 fileds in it: name, email, message:

Name |Enter Your Full Name

Email |Enter Your Email

Message |Enter Your Message Here

I'm using my own css styling

I did mark all 3 fields with \\\"required\\\" but when I test it, only the email filed returns \\\"Please fill in all the required fields.\\\" while the other two fields does not and the form can be sent by filling in your email only.

Any suggestions what I should do to solve this?


October 16, 2013
11:54 pm

…. or could you please direct me to where I can find the answer to my question?

My new website is now live and useable and I could like to fix this issue before my clients start to receive "empty" messages


October 18, 2013
11:08 am

Two days later and hours of searching online and the below post from 2009 solved my problem

Hope this will help others

Oliver said
hm. you're right, the value gets stripped since it's the default value and the empty fields gets accepted.

the default behaviour should be that the default value gets used, the auto-clear feature should only kick in when accessing the field.

a possible workaround could be to disable auto-clear and use regexp, e.g.:

Your Name|Your Name|^(?!(Your Name)).+

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
29 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: 3762

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5361

Posts: 18742

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

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

Administrators: Oliver (6400), Nicky (3)