• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

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

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Enhancement Confirmed   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

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
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

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r2 - 2007-06-17 - TWikiUserMapping_CrawfordCurrie
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback