Uploaded image for project: 'HTML Form Entry Module'
  1. HTML Form Entry Module
  2. HTML-195

Allow forms to define Javascript to be executed before the form is submitted

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: HTML Form Entry 1.8.0
    • Labels:
      None
    • Complexity:
      Medium

      Description

      Proposed solution:

      • In htmlFormEntry.jsp add: var beforeSubmit = new Array();
      • (in people's forms they'll be allowed to add functions to this list)
      • In htmlFormEntry.jsp's doSubmitHtmlForm method, loop over the beforeSubmit list and execute all the functions. If any function returns false, then no more functions should be executed.
      • Finally, after executing all functions (if none of them return false), do the standard submit (which is already implemented in doSubmitHtmlForm.

        Attachments

          Activity

            People

            Assignee:
            gmario Mario Giraldo [X] (Inactive)
            Reporter:
            darius Darius Jazayeri [X] (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: