Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Imported from: http://groups.google.com/group/in-portal-dev/browse_thread/thread/2072b673e41ac8c9#

In In-Portal we've developed FormManager class, that is used to manage
forms that are submitted and validated through ajax.

I wanted to share several improvements we've made to original version we've
used quite a lot over last years:   1.

  1. set error into a field before form is registered

...

  1. set form-specific template to be used in all ajax calls

...

  1. perform immediate validation for inputs on blur event, but for other

...

  1. controls (like radio buttons) in click event

...

  1. if event, called through AjaxFormHelper::transitEvent method

...

  1. requested a redirect to another page (e.g. by setting $event->redirect

...

  1. property), then automatically perform redirect

...

  1. watermarks were not removed when using immediate field validation

...

  1. watermark removal code (that was called before form submit) first

...

  1. removed watermarks and then restored them, but should be restoring original

...

  1. values in these fields

...

  1. error were not removed from form after it was closed by user (without

...

Task:

Jira Legacy
serverIn-Portal Issue Tracker
keyINP-1063

Ready for testing.

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

  1. submitting)

form_manager_improvements_themes.patch

form_manager_improvements_core.patch

Related Tasks

Jira Legacy
serverIn-Portal Issue Tracker
keyINP-1063