This seems like someone should have asked this question before, but I couldn't find anything like it in the forum so forgive me if I'm asking a redundant question.
I'm using SimpleFormController as a controller for a form with a few fields. The only problem is, I have two image buttons. One is supposed to act as the "submit" button, and the other button does something else. In SimpleFormController, there is a onSubmit method which gets called when the "submit" button is hit on the form.
How can I use the image button to simulate a submit button? Or if I click the other button, how does that map to any function in my SimpleFormController? In other words, how can I detect which image button was clicked in the onSubmit method of SimpleFormController or if that's not possible, in SimpleFormController itself.
--JS


Reply With Quote