Hi OC, I guess the only non JS solution would be to split the form in two different forms.
regards René > Am 26.03.2023 um 23:05 schrieb ocs--- via Webobjects-dev > <webobjects-dev@lists.apple.com>: > > Hi there, > > I've got a form (combined from more separate components) whose overall layout > is > > <wo:form><!-- ERXWOForm.multipleSubmitDefault=true --> > ... lots of inputs incl. a number of textfields ... > <!-- [1] --> > <wo:textfield value="$bar"/> > <wo:submit action="$barAction"/> > ... other inputs and textfields ... > <wo:submit action="$fooAction"/> > </wo> > > I would need that an Enter in the "bar" textfield triggers "barAction"; an > Enter in any other textfield triggers "fooAction". > > Can this be done in a clean, preferably non-JS way? > > I've found that I can put an invisible submit/fooAction at the place of [1], > in which case _all_ Enters in _all_ textfields trigger "fooAction", but I > haven't been able to find any nice way to ensure an Enter in the "bar" > textfield triggers "barAction". With JS, I can do that, but it is really darn > ugly (and besides it wouldn't work if the user switches off JS for security). _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com