...
Add conditional-submit to the CSS Class property of the control whose value is to be compared.
Extra Submit button
The form designer lets you easily default theme applied when forms are created in has a submit button located at the end of the form. The forms designer lets you easily add additonal submit buttons to your forms. A submit button is located in a special area at the end of every a form. Additional submit controls can be added in a special area at the end of a form. You
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. |
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 set auto-submit in in the CSS Class property. Now you can use this trigger control as your Submit button and place it anywhere on your form.
...
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"); } } |
...