0 Replies Latest reply on Apr 7, 2009 7:09 AM by DA

    multiple submit buttons in a cfwindow

    DA

      I am using multiple “submit” buttons in a cfwindow and need to know which one was clicked the problem is both values are returned using cfinput or input tags.

       

      I know this is a know issue 71341 but the workaround does not work. Anyone have any ideas?

       

      sample code

       

      <cfwindow name="testwindow" closable="true" draggable="false" title="This is a cfwindow" initShow="false">
          <cfif isDefined("form.submitButton")>
              <cfdump var="#form#" />
              <cfabort />
          </cfif>

       

          <cfform name="testform">
              <input type="submit" name="submitButton" value="Submit Button One" />
              <input type="submit" name="submitButton" value="Submit Button Two" />
          </cfform>

       

      </cfwindow>

       


      <p><a href="#" onclick="ColdFusion.Window.show('testwindow');">click</a></p>