You are here: Foswiki>Tasks Web>Item2228 (16 Jan 2010, PaulHarvey)Edit Attach

Item2228: On update, fields hidden via hidden= param lose contents

Priority: Urgent
Current State: Confirmed
Released In:
Target Release: n/a
Applies To: Extension
Component: RenderFormPlugin
Reported By: PaulHarvey
Waiting For:
Last Change By: PaulHarvey
This is happening in a reasonably complex situation.

Will try to replicate on a clean test installation.

Also: Perhaps RenderFormPlugin should honour the H attribute for fields where it's set in the DataForm topic?

-- PaulHarvey - 08 Oct 2009

Hi Paul, I've noticed the same problem and after some deeper testing I just found out that the problem only occurs when the form method is set to POST. The GET method works fine. I've checked the post parameters with firebug after submitting the form and noticed that the enctype of the form changed to "multipart/form-data". Maybe that's why some parameters get lost. Supporting the "enctype" attribute as an FormPlugin parameter and setting it to "text/html" maybe solves the problem.

-- SvenHess - 20 Oct 2009

Thanks for the debug Sven! I will try that, but I probably won't get to this for another couple of weeks. So changing this back to Confirmed until actually get back into my own RenderForms app and this bug. Feel free to work on this if you get to it before I do.

-- PaulHarvey - 20 Oct 2009

Lacking time to work on this.

-- PaulHarvey - 16 Jan 2010

ItemTemplate edit

Summary On update, fields hidden via hidden= param lose contents
ReportedBy PaulHarvey
Codebase trunk
SVN Range Foswiki-1.0.7, Sun, 20 Sep 2009, build 5061
AppliesTo Extension
Component RenderFormPlugin
Priority Urgent
CurrentState Confirmed
TargetRelease n/a
Topic revision: r4 - 16 Jan 2010, PaulHarvey
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