How to make a form with options auto-submitted?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How to make a form with options auto-submitted?

Jack Liu-2
Hi, ALL
I want to implement a feature:
When an option is selected, the form including this drop-down list
should be submitted automatically.
How should I do?


Best Regards,

Jack Liu

Reply | Threaded
Open this post in threaded view
|

RE: How to make a form with options auto-submitted?

Jack Liu-2
We know, in html, we need write some javascript code.
In OFBiz, then how should we do?

-----Original Message-----
From: Jack Liu [mailto:[hidden email]]
Sent: 2009年2月15日 11:06
To: [hidden email]
Subject: How to make a form with options auto-submitted?

Hi, ALL
I want to implement a feature:
When an option is selected, the form including this drop-down list
should be submitted automatically.
How should I do?


Best Regards,

Jack Liu

Reply | Threaded
Open this post in threaded view
|

Re: How to make a form with options auto-submitted?

BJ Freeman
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

can you be more specific
in ofbiz feature is related to a product.

Jack Liu sent the following on 2/14/2009 7:35 PM:

> We know, in html, we need write some javascript code.
> In OFBiz, then how should we do?
>
> -----Original Message-----
> From: Jack Liu [mailto:[hidden email]]
> Sent: 2009年2月15日 11:06
> To: [hidden email]
> Subject: How to make a form with options auto-submitted?
>
> Hi, ALL
> I want to implement a feature:
> When an option is selected, the form including this drop-down list
> should be submitted automatically.
> How should I do?
>
>
> Best Regards,
>
> Jack Liu
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJl5OJrP3NbaWWqE4RAlT4AJ9nh5QDn3eLJOPZblwUVt4mGqlHCgCgyQ1r
KyK/QBh890BwIDz+t0sD72c=
=d6sm
-----END PGP SIGNATURE-----
Reply | Threaded
Open this post in threaded view
|

RE: How to make a form with options auto-submitted?

Jack Liu-2
I want to implement this feature in my own project.
I simply describe the scenario in my project below:
Every customer has an attribute "type".
For different types, fill in different forms.
It's very simple to implement this requirement with two pages (or more pages).
In the first page, choose a type, then the second page displays the relating form according to the type just chose.

But now, we want to put all these in one page.

-----Original Message-----
From: BJ Freeman [mailto:[hidden email]]
Sent: 2009年2月15日 12:01
To: [hidden email]
Subject: Re: How to make a form with options auto-submitted?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

can you be more specific
in ofbiz feature is related to a product.

Jack Liu sent the following on 2/14/2009 7:35 PM:

> We know, in html, we need write some javascript code.
> In OFBiz, then how should we do?
>
> -----Original Message-----
> From: Jack Liu [mailto:[hidden email]]
> Sent: 2009年2月15日 11:06
> To: [hidden email]
> Subject: How to make a form with options auto-submitted?
>
> Hi, ALL
> I want to implement a feature:
> When an option is selected, the form including this drop-down list
> should be submitted automatically.
> How should I do?
>
>
> Best Regards,
>
> Jack Liu
>
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJl5OJrP3NbaWWqE4RAlT4AJ9nh5QDn3eLJOPZblwUVt4mGqlHCgCgyQ1r
KyK/QBh890BwIDz+t0sD72c=
=d6sm
-----END PGP SIGNATURE-----
Reply | Threaded
Open this post in threaded view
|

RE: How to make a form with options auto-submitted?

hans_bakker
In reply to this post by Jack Liu-2
search for 'event="onChange"' in *Forms.xml files for examples.....

On Sun, 2009-02-15 at 11:35 +0800, Jack Liu wrote:

> We know, in html, we need write some javascript code.
> In OFBiz, then how should we do?
>
> -----Original Message-----
> From: Jack Liu [mailto:[hidden email]]
> Sent: 2009年2月15日 11:06
> To: [hidden email]
> Subject: How to make a form with options auto-submitted?
>
> Hi, ALL
> I want to implement a feature:
> When an option is selected, the form including this drop-down list
> should be submitted automatically.
> How should I do?
>
>
> Best Regards,
>
> Jack Liu
>
--
Antwebsystems.com: Quality OFBiz services for competitive prices

Reply | Threaded
Open this post in threaded view
|

RE: How to make a form with options auto-submitted?

Jack Liu-2
Thank you!
It works well.

-----Original Message-----
From: Hans Bakker [mailto:[hidden email]]
Sent: 2009年2月15日 15:59
To: [hidden email]
Subject: RE: How to make a form with options auto-submitted?

search for 'event="onChange"' in *Forms.xml files for examples.....

On Sun, 2009-02-15 at 11:35 +0800, Jack Liu wrote:

> We know, in html, we need write some javascript code.
> In OFBiz, then how should we do?
>
> -----Original Message-----
> From: Jack Liu [mailto:[hidden email]]
> Sent: 2009年2月15日 11:06
> To: [hidden email]
> Subject: How to make a form with options auto-submitted?
>
> Hi, ALL
> I want to implement a feature:
> When an option is selected, the form including this drop-down list
> should be submitted automatically.
> How should I do?
>
>
> Best Regards,
>
> Jack Liu
>
--
Antwebsystems.com: Quality OFBiz services for competitive prices