[ic] conditionally call mv_form_profile
Mike Heins
mike at perusion.com
Sat Jan 29 13:31:50 EST 2005
Quoting Tom Hodder (tom at ecnow.co.uk):
> Hi,
>
> I have a form which uses a;
>
> <select name=country onChange="this.form.submit()">
>
> to update the form if the country select is changed, therefore I don't
> want the form profile to be executed if that is changed, I just want the
> form to update with the new country options.
>
> I had a
> <INPUT TYPE=hidden NAME=mv_form_profile VALUE="new_account_check">
>
> in my form, but this was being executed when the country select was
> changed. So what I want to do is conditionally execute that form profile
> only when the form is submitted via the submit button.
>
> so I removed the mv_form_profile from the form, and added this to the
> submit button code;
>
> [button
> text="[L]Place Order[/L]"
> wait-text="-- [L]Wait[/L] --"
> form=checkout
> class=button3
> style="font-weight: bold"
> ]
> mv_form_profile=new_account_check
> mv_click=NewAccount
> [/button]
That doesn't work because mv_form_profile happens before mv_click.
<select name=country onChange="
this.form.mv_form_profile.value = '';
this.form.submit();
">
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.647.1295 tollfree 800-949-1889 <mike at perusion.com>
There's nothing sweeter than life nor more precious than time.
-- Barney
More information about the interchange-users
mailing list