#1734 closed enhancement (fixed)
Replace alert() messages in form validation with something better-lookin
Reported by: | Nicklas Nordborg | Owned by: | Nicklas Nordborg |
---|---|---|---|
Priority: | minor | Milestone: | BASE 3.3 |
Component: | web | Version: | |
Keywords: | Cc: |
Description
If an error is detected when validating a form before saving it an error message is usually displayed in a popup using the alert()
function. Nothing wrong with that, but we can do a bit better with modern browsers. See the attached image for an example.
Attachments (1)
Change History (6)
by , 12 years ago
comment:1 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 12 years ago
comment:3 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(In [6176]) Fixes #1734: Replace alert() messages in form validation with something better-looking
Should be fixed in all other dialogs now, and also in some list pages and other places.
Added support for putting the notification to the right of the element. Use: Forms.showNotification(element, msg, null, 'pointer-left')
comment:4 by , 12 years ago
comment:5 by , 11 years ago
Note:
See TracTickets
for help on using tickets.
(In [6175]) References #1734: Replace alert() messages in form validation with something better-looking
Implemented a function for this:
Forms.showNotification
which should replace all calls to alert(). The function will automatically focus and select the specified form field if possible. The notification automatically disappears when the user starts typing or when the field loses focus.The setting dialogs in the "BASE" menu and the calendar popup has been used for testing.