Is the woody_submit_id hidden form control used only for the event handlers?

What if submitting via <wd:submit> or <wd:action> used it also? If they did, then we could add something like this:

<wd:submit id="save" action-command="x" default="true">
<wd:label>Save</wd:label>
</wd:submit>

'default="true"' in a submit or action widget would cause the woody_submit_id <input> element to be emitted with this widget's id in its 'value' attribute. And that might help to mitigate the heinous form-submit-on-Enter-keypress "feature" that every browser so helpfully, and differently, implements.

I've used this sort of technique before, by hand; but it could be built in to CForms.

WDYT?
Mark

Reply via email to