Tags:
188bettvip
6
apple
asd
babu88
Babu88 &2438;&2474;&2472;&2494
Bakugan and Deku coloring page
Basreng188 Indonesia Games: Th
Boost Your Online Presence wit
casino
chatgpt kostenlos
CollegeSuccessForTeenagers
column
Dear Lottery lottery sambad na
Dibu Martínez Argentina&39;s h
Digiwebglobal.com: Your Gatewa
Download Shein apk
edu post
egdfgfdgfdgdg
Eroticke Masaze Praha
erp
Face
Fethiye
game
Game Online Slot Gacor
garage door
garage door repair
garage door service
GaragedoorrepairMinneapolis
gioi thieu xaydunglocthinh
Good Team Name
GoPromotional Items
HMblogs
How Can I Leverage Social Medi
hvacdiploma
hy86net
Interactive PPT presentation
ios368
Jenny
Khám Phá Website bj38: Tr&7843
kindergarden
konohatoto78
lottrey
Marrakech-desert-tours
massage lingam
MNLWIN
Mobile Repair
Most Popular Stuffed Toys
moving
Multimedia Presentation Exampl
news
Nh&7919;ng Chi&7871;n L&432;&7
Nivela
Northern Lottery: An Attractiv
Nên &273;ánh con gì khi m&417;
ok9host
olxtoto
Portside Web Design and SEO Ne
Powering the Future: The Impor
Prep Guides
pujcovnadodavekpraha
rabonabet
Referring page
resume
Revolutionize Your Design Work
Ritalin Dosage Guide: Finding
sadad
Signal
slot thailand
Social media app development
Social media app development-C
Sports Streaming
sssss
Strategies for Success in Ku88
The Future of Life Coaching Pr
Training
Training-Programs
Travel
Types of presentation software
University Admission Portal
VietScore
What Are The Benefits Of A PGD
Why Balloons Make Every Occasi
Wordle
wordle123
Xí Ng&7847;u - H&432;&7899;ng
Zero Down Payment iPhone Offer
tag this topic
create new tag
view all tags
---+ Package =TWiki::Form::FieldDefinition= Base class of all field definition classes. Type-specific classes are derived from this class to define specific per-type behaviours. This class also provides default behaviours for when a specific type cannot be loaded. %TOC% ---++ ClassMethod *new* <tt>(%...)</tt> Construct a new FieldDefinition. Parameters are passed in a hash. See Form.pm for how it is called. Subclasses should pass @_ on to this class. ---++ ObjectMethod *finish* <tt>()</tt> Break circular references. ---++ isEditable() -> $boolean Is the field type editable? Labels aren't, for example. Subclasses may need to redefine this. ---++ isMultiValued() -> $boolean Is the field type multi-valued (i.e. does it store multiple values)? Subclasses may need to redefine this. ---++ isTextMergeable() -> $boolean Is this field type mergeable using a conventional text merge? ---++ isMandatory() -> $boolean Is this field mandatory (required)? ---++ renderForEdit( $web, $topic, $value ) -> ($col0html, $col1html) =$web= - the web containing the topic being edited =$topic= - the topic being edited Render the field for editing. Returns two chunks of HTML; the =$col0html= is appended to the HTML for the first column in the form table, and the =$col1html= is used as the content of the second column. ---++ cssClasses(@classes) -> $classes Construct a list of the CSS classes for the form field. Adds additional class specifiers related to the attributes of the field e.g mandatory. Pass it a list of the other classnames you want on the field. ---++ getDefaultValue() -> $value Try and get a sensible default value for the field from the values stored in the form definition. The result should be a value string. Some subclasses may not support the definition of defaults in the form definition. In that case this method should return =undef=. ---++ renderHidden($meta) -> $html Render the form in =$meta= as a set of hidden fields. ---++ populateMetaDataFromQuery( $query, $meta, $old ) -> ($bValid, $bPresent) Given a CGI =$query=, a =$meta= object, and an array of =$old= field entries, then populate the $meta with a row for this field definition, taking the content from the query if it's there, otherwise from $old or failing that, from the default defined for the type. Refuses to update mandatory fields that have an empty value. Return $bValid true if the value in $meta was updated (either from the query or from a default in the form. Return $bPresent true if a value was present in the query (even it was undef) ---++ ObjectMethod *renderForDisplay* <tt>($format,$value,$attrs) -> $html</tt> Render the field for display, under the control of $attrs. The following vars in $format are expanded: $title - title of the form field $value - expanded to the *protected* value of the form field The value is protected by TWiki::Render::protectFormFieldValue. ---++ ObjectMethod *attributesAsText* <tt>() -> $text</tt> Returns field attribute parameters as text, format: key1="value1" key2=value2"
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r2 - 2015-11-29
-
TWikiContributor
Home
Site map
TWiki web
TWiki Web
User registration
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
InterWikis
ManagingUsers
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Account
Log In
E
dit
A
ttach
Copyright &© 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.TWikiFormFieldDefinitionDotPm
.