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

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?

Daniel

November 2, 2012
1:08 am
D. Steinbock
Guest

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
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

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
Captjono
Guest

Hi,

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

Thanks heaps!

Jon

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
26 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: 3713

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5311

Posts: 18672

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

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

Administrators: Oliver (6400), Nicky (3)