Hello, everyone. I've noticed a bug with fox. When I submit something like:

(:aaa:AAA:)
(:bbb:BBB:)
(:ccc:CCC:)

(:fox form1 ptvtarget={$FullName}:)
(:input hidden aaa "XXX":)
(:input hidden bbb "YYY":)
(:foxreplace target="{$FullName}" put=string mark=":ccc:{$:ccc}:" 
foxtemplate=":ccc:ZZZ:":)
(:input submit post Submit:)
(:foxend form1:)

What expect to get is:

(:aaa:XXX:)
(:bbb:YYY:)
(:ccc:ZZZ:)

But I end up with:

(:aaa:XXX:)
(:bbb:YYY:)
()

I've figured out that I can do a workaround by adding a dummy foxreplace field 
before the one
I want to actually use, like:

(:fox form1 ptvtarget={$FullName}:)
(:input hidden aaa "XXX":)
(:input hidden bbb "YYY":)
(:foxreplace target="{$FullName}" put=string mark="_dummy_" 
foxtemplate="whatever":) <!--workaround-->
(:foxreplace target="{$FullName}" put=string mark=":ccc:{$:ccc}:" 
foxtemplate=":ccc:ZZZ:":)
(:input submit post Submit:)
(:foxend form1:)

As long as the dummy feild's target is the same as the following one, it'll 
work.

Thanks

_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to