[ic] mv_click bounce not working while mv_form_profile is set :-/

Mike Heins mike at perusion.com
Wed Dec 22 09:58:33 EST 2004


Quoting Philipp.Trost at digi-T.de (philipp.trost at digi-t.de):
> hi all,
> 
> i ve the following form:
> 
>     <form action="[process]" method="post" name="bounce_test">
>     <INPUT TYPE="hidden" NAME="mv_session_id" VALUE="[data session id]">
>     <INPUT TYPE="hidden" NAME="mv_form_profile" VALUE="test_bounce">
>     <INPUT TYPE="hidden" NAME="mv_todo" VALUE="return">
>     <INPUT TYPE="hidden" NAME="mv_nextpage" VALUE="@@MV_PAGE@@">
> 
> [error name=weight std_label="weight" required=1]
> <input type="text" name="weight" class="blau_mittel" value="[value weight]" maxlength="64">
> 
> [error name=zip std_label="zip*" required=1]
> <input type="text" class="blau_mittel" name="zip" value="[value zip]" maxlength=64>
> 
>     [button
>        name=mv_click
>         form=bounce_test
>          text="cancel"
>     ]
>       [bounce page=login]
>     [/button]
>   <INPUT TYPE="submit" class="menu" value="senden">
> </form>
> 
> the cancel button should bounce to the login page without checking the
> profile

I don't know why you say that. mv_click happens after mv_form_profile.

> and the submit should submit after checking profile
> (test_bounce)

You can cause that type of behavior with mv_order_profile, but
of course the "submit" happens -- you just get a point where you
can cause some actions.

I think you want something like:

[set test_bounce]
   [if cgi cancel_me]
	[bounce page=login]
   [else]
	&update=yes
	weight=required
	zip=required
   [/else]
   [/if]
[/set]

<form action="[process href=@@MV_PAGE@@]" method="post" name="bounce_test">
<INPUT TYPE="hidden" NAME="mv_session_id" VALUE="[data session id]">
<INPUT TYPE="hidden" NAME="mv_form_profile" VALUE="test_bounce">
<INPUT TYPE="hidden" NAME="mv_action" VALUE="return">
<INPUT TYPE="hidden" NAME="mv_nextpage" VALUE="@@MV_PAGE@@">
 [error name=weight std_label="weight" required=1]
 <input type="text" name="weight" class="blau_mittel" value="[value weight]" maxlength="64">

 [error name=zip std_label="zip*" required=1]
 <input type="text" class="blau_mittel" name="zip" value="[value zip]" maxlength=64>


<INPUT TYPE="submit" NAME="cancel_me" VALUE="cancel">
<INPUT TYPE="submit" class="menu" value="senden">
</form>


-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.647.1295  tollfree 800-949-1889 <mike at perusion.com>

p.s. sorry for lower case, injured hand

Nature, to be commanded, must be obeyed. -- Francis Bacon


More information about the interchange-users mailing list