This question about Using an extension: Needs followup in Tasks

Can't create topics with FormPlugin

I'm trying to use FormPlugin for creating topics but when I press the submit button, it doesn't goes to the action I put in the STARTFORM, it always goes to "view" and tries to open the topic I'm about to create. I'm not sure how to make it go to "edit" or "save". I tried this in an html form and works without problem. I tried the example that creates a test topic in the sandbox and doesn't work, just reloads the topic with the examples. I had the exact same problem when I was using TWiki 5.0.2 and I had to keep using HTML forms. Fortunately I didn't have any problems migrating to foswiki.
%STARTFORM{
   name="deforme"
   action="edit"
}%%FORMELEMENT{
   name="topic"
   type="text"
   title="Topico:"
value="%QUERY{"'%BASEWEB%.%BASETOPIC%'/id_elemento"}%%IF{"'%QUERY{"'%BASEWEB%.%BASETOPIC%'/auto_inc"}%'='si'" then="AUTOINC00000"}%"
   mandatory="on"
}%%FORMELEMENT{
   name="onlynewtopic"
   type="hidden"
   default="on"
}%%FORMELEMENT{
   name="onlywikiname"
   type="hidden"
   default="on"
}%%FORMELEMENT{
   name="topicparent"
   type="hidden"
   default="%BASETOPIC%"
}%%FORMELEMENT{
   name="templatetopic"
   type="hidden"
   default="%QUERY{"'%BASEWEB%.%BASETOPIC%'/plantilla_base"}%"
}%%FORMELEMENT{
   name="id_elemento"
   type="hidden"
   default="pruebaID"
}%%FORMELEMENT{
   name="action"
   type="submit"
   buttonlabel="Submit"
}%%ENDFORM%

Thanks in advance.

-- PompetardO - 04 Nov 2011

Creating a new topic like this should work, and does for me. If it's still not working for you with the latest FormPlugin (perhaps wait a few days for version 2.3.2), you should open a Task describing your setup in a little more detail (which version of Foswiki and FormPlugin, whether you run it as CGI or using mod_perl etc), and perhaps add debug output (what gets written to debug.log when you set

$Foswiki::cfg{Plugins}{FormPlugin}{Debug} = 1;

in lib/LocalSite.cfg.

-- FlorianSchlichting - 23 Mar 2012

QuestionForm edit

Subject Using an extension
Extension FormPlugin
Version Foswiki 1.1.3
Status Needs followup in Tasks
Related Topics
Topic revision: r2 - 23 Mar 2012, FlorianSchlichting
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy