I have a DynamicForm which has 2 event handlers that allow the form to be submitted: Button->ClickHandler and Dynamicform->SubmitValuesHandler with setSaveOnEnter(true).
This of course results in the form being submitted twice if the user tabs to the Submit button to be in focus and presses Enter. This fires both events. I tried various things to try to keep track of the submissionInProgress but nothing seems to help to cancel either of the events.
Is there an easy way to prevent this? I would really like to allow the users to use both Enter as well being able to click on the Submit button.
I am using SmartGWT 3.1.
Thanks,
Henry
This of course results in the form being submitted twice if the user tabs to the Submit button to be in focus and presses Enter. This fires both events. I tried various things to try to keep track of the submissionInProgress but nothing seems to help to cancel either of the events.
Is there an easy way to prevent this? I would really like to allow the users to use both Enter as well being able to click on the Submit button.
I am using SmartGWT 3.1.
Thanks,
Henry
Comment