Tags:
create new tag
, view all tags

TWiki Form Field Extensions

Color wheel Extensions that define additional form field types for TWikiForms. This is in addition to the built in form field types documented in TWikiForms#FormFieldTypes.

Extension Type Description Size Value
AutocompletePlugin autocomplete screenshot-small Autocomplete input field. Start typing to get a list of items to choose from, or click on the pulldown button to see all items. Size of input field in number of characters Comma-space separated list of autocomplete options
AutocompletePlugin autocomplete+restrict Autocomplete, where input is restricted to list of autocomplete options. The value in the input field will be cleared if it does not match one of the autocomplete options. Partial input is expanded - for example if one of the options is "JavaScript" and the user typed "ja", the input field is expanded to "JavaScript" on focus loss.
AutocompletePlugin autocomplete+values Like autocomplete, allowing definition of inserted values that are different to the displayed autocomplete options. An autocomplete option is defined as value: title, where the value is the text inserted into the input field when picking the title option. For example:
| Field 9 | autocomplete+values | 3 | One, 2: Two, III: Three | Various values formats |
shows autocomplete options
but the inserted values of autocomplete options Two and Three are 2 and III, respectively.
Note: Autocomplete types can be combined: autocomplete+restrict+values
ColorPickerPlugin color screenshot-small Single-line text box and a color picker to pick a color. The color can also be typed into the text box, such as #123456.
An attribute of type="popup" shows a button that, when clicked, opens a color picker popup.
Text box width in number of characters Initial (default) color
DatePickerPlugin date screenshot-small Text input field and a button next to it to pick a date from a pop-up calendar. The date can also be typed into the text box. Text box width in number of characters Initial (default) date
FileUploadPlugin file screenshot File upload form field, to upload an attachment to the topic when saving the form. Text box width in number of characters  
PercentCompletePlugin percent screenshot-small Percent complete indicator and pick list. The percentage can be set by clicking on the percent complete indicator bar, or by picking a value from the pick list. N/A Initial (default) percentage value
RatingContrib rating starrating Line-of-stars rating bar. Number of stars for rating Initial value
RatingContrib rating+small starrating-small Like rating, but with small stars.    

See also: Built-in form fields

-- Contributor: PeterThoeny - 2012-08-10

Comments

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2012-08-17 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2016 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.