Re: choosing the submit for Enter in a textfield?
Re: choosing the submit for Enter in a textfield?
- Subject: Re: choosing the submit for Enter in a textfield?
- From: René Bock via Webobjects-dev <email@hidden>
- Date: Tue, 28 Mar 2023 12:23:43 +0000
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=salient-doremus.de; dmarc=pass action=none header.from=salient-doremus.de; dkim=pass header.d=salient-doremus.de; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XfEVQQIwNV5qOysfrqJLRGD9aw2rIt4MimB1RVYYpoU=; b=GAYVi/52RbASC8AS07BqBpuZ0j9x2MRG9dAWJVT9xno28ewG3kL16A5GMYJE5nQ/mItoCtSxUBt9U4x5O/d9SDAVK286aicuX6XV7GOeHCZVsL3SMeokWVPrLFp3dav3jNjKUAnYp5D6N9lJqo1aM2ZDLhBN0kbcmArXkufI3P8aUrD4ySnvIVbtzIymceBGoX8OmSVqOgSieszBiMLIUkR0WABt4WQmiVTpeo6wt4h0mRRdeAbKwhYzz/v4x47s26akWk5j2F/QOYSGZFfQi0VCcxynwKdCdzJ4XcScGp+vPfxKK4HHJJStVa5iefNoMMc9MU3wDSgrsb3VHKtIYw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kqGkeNIFq0v5wFabMcevXbPoKnY/p9cnPhQYPep25iR/C2I2y8DDrqKQvpjM7sXTNQ8yDWqVjETSBIlBv4EGmiy0a9EgAJSqaEb4yp2ICyPwq9PGnrXmoFr2D9XnhKAZUYtCzbKvBiGC02zH1rrN1Q1r7UWrw2f255l6uYlL12c9jzOU1/jWspzupY9Z8KkRwSmhBDguWAJr4yVKYCRwZpCL0zgmaBp71+i2foykQNuktCtOhP3mCfFUuvWxd00M5e18b2kUMp65FYFZNYdN44CsHXC63OiPxfmS4i4pd4c3ILCVupIbAYLMUGwUIbUThQXzjzWSk3aJnB29t+x98Q==
- Thread-topic: choosing the submit for Enter in a textfield?
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
> <email@hidden>:
>
> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden