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]
however the NewAccount is called when the button is clicked, but the
mv_form_profile is not.
I've tried a variety of combinations, such as putting mv_form_profile in the NewAccount definition, but nothing seems to be calling it.If I put mv_form_profile back in the form, the form works fine, except for when a user changes the country in the select, and they get submitted to the form profile and get lots of errors.
Thanks in advance for any advice. Tom H _______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.