-- StefanosKouzof - 23 Jun 2010

I have an application that creates topics based on user names, and am using the substitution of field references to create personalized topic names.

I have a static page name and a variable that gets the wikiname of the user. I tried the substitution in two ways:

 
%STARTFORM{
name="EmployeePageCreate"
action="save"
web="%WEB%"
topic="EmpTopic$EmpName"
onSubmit="return notify(this)"
method="post"
}%
....

 
%STARTFORM{
name="EmployeePageCreate"
action="save"
web="%WEB%"
topic="$EmpTopic"
onSubmit="return notify(this)"
method="post"
}%

...

%FORMELEMENT{
name="EmpTopic"
type="hidden"
default="Employee$EmpUserName"
}%

Both ways, the form plugin does not save the form. If i remove replace the variable (or replace it with AUTOINC), all works fine.

Example:
 
%STARTFORM{
name="EmployeePageCreate"
action="save"
web="%WEB%"
topic="EmpTopicAUTOINC0001"
onSubmit="return notify(this)"
method="post"
}%
....

On the other hand, if there is a space among the variables (like the default example in the Sandbox>FormPluginExamples), all is working. This happened just after the upgrade to latest version.

Fixed in FormPlugin 2.0.

-- ArthurClemens - 30 Apr 2011

 

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads