[FreeForm] Match required fields against default values
Posted: 31 July 2007 06:52 PM   [ Ignore ]
Jr. Member
RankRank
Total Posts:  37
Joined  2007-04-26

It is good practice for accessibility, to provide default form field values. It would be great if FreeForm could check the value of required fields against a ‘NOT’ list when validating.

For example, imagine this required field:

<input type="text" name="postcode" value="Enter your zip/postal code" />

Validation would ensure that the field is not blank, but also that the field value is not equal to “Enter your zip/postal code”, or “ “ (a space).

Profile
 
 
Posted: 01 August 2007 01:53 PM   [ Ignore ]   [ # 1 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

I am not saying it’s not an option, but you could probably do that with Javascript in most cases.

 Signature 

Ingmar Greil

Profile
 
 
Posted: 05 August 2007 03:37 AM   [ Ignore ]   [ # 2 ]
Jr. Member
RankRank
Total Posts:  37
Joined  2007-04-26

Yes, you could do it with javascript, but in some cases that would defeat the point of providing default form values, because doing so is aimed at assistive and mobile technologies, which may not support the javascript.

Profile