...
Add conditional-submit to the CSS Class property of the control whose value is to be compared.
Extra Submit button
You The form designer lets you easily add additonal submit buttons to your forms. A submit button is located at the end of every form. Additional submit controls can be added in a special area at the end of a form. You can use the following JavaScript to display an extra submit button at any position on your form. Add a trigger control to your form and set auto-submit in the CSS Class property. Now you can use this trigger control as your Submit button and place it anywhere on your form.
Warning |
---|
Users expect the submit and cancel buttons to be located at the bottom of a form. Moving the location of the Submit control is not recommended. |
Code Block |
---|
var CustomEventHandlers = { submitEl: null, setup: function (el) { if (CustomView.hasClass(el, 'auto-submit')) { FEvent.observe(el, 'click', this.autoSubmit.bindAsObserver(this, el)); } }, autoSubmit: function (evt, el) { window.setTimeout('CustomEventHandlers.doAutoSubmit()', 2000); }, doAutoSubmit: function () { SubmitView.doSubmit("Submit"); } } |
...