Page MenuHomePhabricator

Allow preload= and template-name[field-name]=field-value to coexist
Closed, ResolvedPublicFeature

Description

Author: mitchell_neill

Description:
Hi.

I have a large form defined with 80 odd fields. I would like to be able to preload a number of the fields from a master page, but also pass in specific values from the parent page.

So I have:
{{#formlink:form=Enquiry Form|link text=Add a new enquiry|link type=button|query string=preload=Master_Enquiry&Enquiry Template[Caller]={{PAGENAMEE}}&Enquiry Template[First name]={{{First name|}}}&Enquiry Template[Surname]={{{Surname|}}}&Enquiry Template[Town]={{{Town|}}}}}

However, even though the Caller, First name, Surname and Town are empty in the master page, the resulting form has these fields blank rather than filled in with the supplied parameters.

It would be useful to allow preload= and template-name[field-name]=field-value to coexist so you can preload both "static" field values and "dynamic" ones passed in from the formlink.

Thanks.


Version: master
Severity: normal

Details

Reference
bz44282
Related Changes in Gerrit:

Event Timeline

• bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:35 AM
• bzimport set Reference to bz44282.
Aklapper triaged this task as Low priority.Feb 4 2022, 8:11 PM
Aklapper changed the subtype of this task from "Task" to "Feature Request".

Change 937469 had a related patch set uploaded (by Yaron Koren; author: Yaron Koren):

[mediawiki/extensions/PageForms@master] Allow overriding of values from "preload"

https://gerrit.wikimedia.org/r/937469

Change 937469 merged by jenkins-bot:

[mediawiki/extensions/PageForms@master] Allow overriding of values from "preload"

https://gerrit.wikimedia.org/r/937469

Yaron_Koren claimed this task.
Yaron_Koren subscribed.

This is finally done, after ten (or more?) years.