Uploaded image for project: 'Click'
  1. Click
  2. CLK-586

Form javascript validation not called when form is submitted with a SubmitLink

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.1.0 RC1
    • 2.1.0
    • extras
    • None

    Description

      Calling form.submit() does not execute code on the onsubmit=".." event handler:

      http://bytes.com/topic/javascript/answers/147399-submitting-form-onsubmit-validation

      so the the validation code must be also be called on the onclick=".." event handler for the SubmitLink.

      Attachments

        1. form-example.zip
          2 kB
          Finn Bock
        2. submitlink.patch
          0.9 kB
          Finn Bock

        Activity

          People

            sabob Bob Schellink
            bckfnn Finn Bock
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: