Item4261: Can't save template topic with mandatory form fields

pencil
Priority: Enhancement
Current State: Confirmed
Released In:
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: TWiki:Main.PeterThoeny
Waiting For:
Last Change By: TWikiUserMapping_CrawfordCurrie
The TWikiForms definition has an "M" attribute to declare a form fields as manditory. When you create a TWiki forms based TWiki app you typically want to create a template topic with empty fields, but wwant to require users to fill in the details. That is, it should be possible to override the manditory flag just for the template topic.

Not sure what the best spec is. Possibly treat topics with forms differently if listed in the WEBFORMS preferences settings?

(this is a follow-up from Item3594. Crawford prefers to track this in a new bugs item.)

-- TWiki:Main/PeterThoeny - 16 Jun 2007

Not a bug, an enhancement.

Since there is no way to know that a topic is going to be used as a template, it would be better to clear the value of mandatory fields when the topic containing the form is instantiated. Not sure what WEBFORMS has to do with this, as it relates to topics used as form definitions, not topics used as topic templates.

Personally I think this is unnecessary, as you can always use the formtemplate to attach a form to a new topic. But it would certainly be easier to use if you could simply attach a form to the template.

CC

ItemTemplate edit

Summary Can't save template topic with mandatory form fields
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4
SVN Range TWiki-4.1.2, Thu, 14 Jun 2007, build 14128
AppliesTo Engine
Component
Priority Enhancement
CurrentState Confirmed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r2 - 17 Jun 2007, CrawfordCurrie
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