Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1063

Add support for redirects to the "AjaxFormHelper" class

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.0-B1
    • Fix Version/s: 5.2.0-RC1
    • Component/s: Front End
    • Labels:
      None

      Description

      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:

      • set error into a field before form is registered
      • set form-specific template to be used in all ajax calls
      • perform immediate validation for inputs on blur event, but for other controls (like radio buttons) in click event
      • if event, called through AjaxFormHelper::transitEvent method requested a redirect to another page (e.g. by setting $event->redirect property), then automatically perform redirect
      • watermarks were not removed when using immediate field validation
      • watermark removal code (that was called before form submit) first removed watermarks and then restored them, but should be restoring original values in these fields
      • error were not removed from form after it was closed by user (without submitting)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: