From: parkerjwik <jos...@ho...> - 2013-08-03 01:54:55
|
Hi, I am having a problem prefilling a form that contains two {{{for template...}}} calls, which are used to pass form field values to two corresponding templates. ie. I would like to use #formlink parser function to prefill form fields x and y with values v1 and v2. I would then like pass values, v1 and v2 to templates A and B respectively using {{{for template|A}}}...{{{end template}}} and {{{for template|B}}}...{{{end template}}}: {{#formlink:form=Task |link text= update |Foo[x]=V1 |Foo[y]=V2 |popup}} --Form:Foo-- {{{info...}}} {{{for template|A}}} {| class="formtable" {{{field|x}}} |}{{{end template}}} {{{for template|B}}} {| class="formtable" {{{field|y}}} |}{{{end template}}} --Template:A-- do smth with {{{x}}} --Template:B-- do smth with {{{y}}} ... What happens is that the form field y gets prefilled while x does not. missing smth? Josh -- View this message in context: http://wikimedia.7.x6.nabble.com/prefilling-forms-with-multiple-templates-tp5010353.html Sent from the Semantic Mediawiki - User mailing list archive at Nabble.com. |