Data form 'required' property UI design
pieterh wrote on 17 Feb 2010 13:23
This is a UI design sketch for the 'required' property.
- The required property has a different CSS class, and in our default themes, required fields are visually indicated by a light yellow background.
- Required fields are followed by a red star: *.
- When the user tries to save the page and there are missing fields, the UI shows a message in red below each missing field: "Please supply a value for %%field_label{…}%%."
- When the user enters a value for the field and leaves the field (focus off) the message is removed immediately.
Usability problem (closed) | By Gabrys | 1 Comments | 19 Feb 2010 11:48 |
Comments: 3
page revision: 2, last edited: 18 Mar 2010 09:05
Currently, the match property effectively makes a field required. This should be changed so that it ties into the required property when it's implemented.
For example, you may want to create an email address field using a match property for data input, but not necessarily make it a required field.
-Ed
Community Admin
solution for empty string or valid e-mail address:
^$ — empty string
| — or
^[_a-zA-Z0-9\-\+]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)+$ — e-mail address
Bartłomiej Bąkowski @ Wikidot Inc.
';.;' TeRq (Write PM)
Thanks! Regular expressions always make my head hurt. One of these days I really need to spend some time learning more so I can have some chance in translating them easily.
-Ed
Community Admin