• Mulitple forms

    By Ross Swick 1 decade ago

    Another issue I'm running into, that is related to having multiple pages in the same file, is creating multiple forms, with multiple "submit" buttons.  Each button wants to validate all the data in the file - including the data on the other page(s).  is there a way to constrain each submit button to only act on the data on it's own page. 

    Maybe a mForm control?

    Thanks,

    -Ross

    • Submit differently

      By F van der Linden 1 decade ago

      The multiple pages are linked to a different datasources?
      Then it's easy, put the submit property of the button event to false, and add some ssjs to the onclick event of the button. The ssjs should be something like datasource.save()