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
bug? user can submit required field with default value
October 29, 2012
11:38 pm
D. Steinbock

I'm using default values that auto-clear for the typical purpose, i.e. suggesting example values to the user. However, users can submit the form without changing these default values, effectively avoiding having to fill out a required field.

I can understand that there are cases when submitting default values is desirable (though this seems like the minority case to me). Is there a workaround using regular expressions?


November 2, 2012
1:08 am
D. Steinbock

Bump. How can I detect that the user is submitting a field with the default value unchanged? I don't see how regular expression supports this, i.e. that matches a string that does *not* contain the provided pattern. Help?

November 7, 2012
6:54 am
Munich, Germany
Forum Posts: 6400
Member Since:
March 6, 2005

Yes, that's possible and the recommended approach. I think this has been addressed in the forum before,  Google may also give you starting points to assemble that short REGEXP.

January 14, 2013
11:36 pm


Can you link to where this has already been covered on this forum?

Thanks heaps!


Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
19 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: 3757

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5355

Posts: 18732

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

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

Administrators: Oliver (6400), Nicky (3)