Page MenuHomePhabricator

The 'default' parameter of the 'free text' 'standard input' form markup tag has no effect
Closed, ResolvedPublic

Description

Author: dan.bolser

Description:
For example:

{{{standard input|free text|default=Test}}}

fails to add the text 'Test' into the resulting field. The same effect can be achieved using using the 'preload' parameter, however, if the behaviour of the 'default' parameter isn't going to be fixed, the docs should be updated.

Also, I think it would be nice if preload setting was activated if the form was edited and the free text field was empty (i.e. if the setting is added after several pages have already been created with the form).


Version: unspecified
Severity: minor

Details

Reference
bz24251

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:59 PM
bzimport set Reference to bz24251.

jeanphilippe.muller12 wrote:

Patch to the issue 24251

Tested with MW-1.15.0, SMW-1.5.0 and SF-2.0.3 (and SF-1.9)

attachment freetext.patch ignored as obsolete

jeanphilippe.muller12 wrote:

Patch to the issue 24251

There was an editing problem in the "freetext.patch" file. As I checked out the SF project, the symbol "²" was replaced by "�", so the "svn diff" took this for a modification.

Attached:

Hi Jean-Philippe,

Thanks a lot for this patch - I just checked it in to SVN, and it'll be in the next official version of SF, 2.0.4.