User talk:Andreas Plank

Test forminput: prefill multiple forms
With #forminput using Form:Company I cannot prefill form fields for multiple forms using the parameter "query string" in #forminput or #formlink. One problem is that the URL becomes rendered to http://www.example.com&Activity and that the final URL has not the correct format to trigger a prefill in the form:   "query string=Company[Website]=http://www.example.com&Activity[1][1]=2012/10/09" produces the following form …

… but the URL becomes changed or cut. #forminput should produce the URL:
 * http://scratchpad.referata.com/wiki/Special:FormEdit/Company/Hai?Company[Website]=http://www.example.com&Activity[1][1]=2012/10/09

… but it produces this URL
 * http://scratchpad.referata.com/wiki/Special:FormEdit/Company/Hai?Company[Website]=%3Ca+rel%3D%5C%22nofollow%5C%22+class%3D%5C%22external+free%5C%22+href%3D%5C%22http%3A%2F%2Fwww.example.com%26Activity%5C%22%3Ehttp%3A%2F%2Fwww.example.com%26Activity%3C%2Fa%3E%5B1%5D%5B1%5D%3D2012%2F10%2F09

 or leaving out the value for "Company[Website]" an error occurs here in the Wiki Warning: urlencode expects parameter 1 to be string, array given in /home/yaron57/public_html/w/extensions/SemanticForms/specials/SF_FormStart.php on line 170 …and the URL becomes cutted to http://scratchpad.referata.com/wiki/Special:FormEdit/Company/Hai?Activity[1]=  However, an URI encoded string works http://scratchpad.referata.com/wiki/Special:FormEdit/Company/Hai?Company%5BWebsite%5D=http://www.example.com&Activity%5B1%5D%5B1%5D=2012/10/09 to prefill data 

I see two issues that I would like to be solved: Could this be solved? --Andreas Plank (talk) 15:09, October 9, 2012 (UTC)
 * 1) any http://something becomes parsed to a link (but it should not)
 * 2) any query string pointing to a multiple form field, e.g. "&Activity[1][1]=2012/10/09" becomes cutted to "Activity[1]=" (but it should not)
 * I correct: it’s only a #forminput bug as I see it. --Andreas Plank (talk) 09:01, October 10, 2012 (UTC)