Type
column of a DataForm definition, such as in
Name | Type | Size | Values | Description | Attributes |
---|---|---|---|---|---|
IpAddress | ipaddress | 15 | network address | ||
Netmask | netmask | 15 | netmask | ||
MacAddress | macaddress | 17 | hardware-addresse |
Values
column to further customize the behavior of the element.
autofill
source
parameter
are extracted and concatenated using the specified separator
. Values of an autofill
formfield cannot be edited by the user.
Parameters:
header
: add an optional string prefixed to the field value, but only when the source fields are not empty
source
: comma-separated list of one or more formfields to fetch values from
separator
: separator used when concatenating all values into a new value for the autofill
field
footer
: append an optional string to the field value, but only when the source fields are not empty
autofill
field is the construction of a TopicTitle based on other form properties:
Name | Type | Size | Values | Description | Attributes |
---|---|---|---|---|---|
TopicTitle | autofill | 1 | header="Project" source="Customer, ID, Year" | ||
Customer | text | 80 | |||
ID | id | 4 | |||
Year | text | 4 |
icon
A select box to chose an icon supported by Foswiki (famfamfam and fontawesome).
Parameters:cat
: list of icon categories to be included in the selection
include
: regular expression of icons to include in the selection
exclude
: regular expression of icons to be excluded from the selection
$Foswiki::cfg{JQueryPlugin}{IconSearchPath}
:
famfamfam
... to select famfamfam icons only
silkicons
... to selec from a silk icon only,
flagicons
... to select a flag
Or an icon category as defined in the fontawesome definition:
Examples:
Name | Type | Size | Values | Description | Attributes | Default |
---|---|---|---|---|---|---|
FamFamFamIcon | icon | 20 | cat="famfamfam" | |||
SilkIcon | icon | 20 | cat="silkicon" | |||
MintIcon | icon | 20 | cat="minticons" | |||
FlagIcon | icon | 20 | cat="flagicons" | |||
WebApp | icon | 20 | cat="Web App" |
id
AUTOINC
feature (see TemplateTopics).
The AUTOINC
feature adds a numeric unique identifier when the topic is created. This identifier can be extracted using an id
formfield type
and stored into a DataForm and be available for formatted searches.
The value in the Size
column will be used to add leading zeros to the id. For example, given a topic FooBar1 has a DataForm
Name | Type | Size | Values | Description![]() |
Attributes |
---|---|---|---|---|---|
ID | id | 4 |
id
formfield will have a value of 0001
.
Parameters: none
ipaddress
10.0.0.1
Parameters: none
macaddress
00:1a:10:6f:ba:12
Parameters: none
netmask
255.255.255.0
phonenumber
select2
select
formfield. See JQSelect2Contrib.
Parameters: none
smartbox
A somewhat "smarter" checkbox formfield type. It allows to select one of the values as a placeholder representing "any" value in the selection.
So given this DataForm definition ...
Name | Type | Size | Values | Description | Attributes | Default |
---|---|---|---|---|---|---|
Business Area | smartbox | 5 | Energy, Maritime, Oil & Gas, Software, Across all Business Areas* |
... then selecting "Accross all Business Areas" will select all other areas with it. Likewise, selecting all business areas indivudually will automatically select "Accross all Business Areas" as well.
Note that the "any value" selection is the one indicated by the "*" asterisk, or if not present the first in the list.
time
topic
web
: the web the user can choose topics from; defaults to current web
default
: the default value to use if no value exists yet
url
: url for autocompletion, default: %SCRIPTURL{"view"}%/System/MoreFormfieldsAjaxHelper?section=select2::topic;skin=text;contenttype=application/json
TopicType
: name of a TopicType to be selected
Custom parameters may be added. These will be appended to the autocompletion url.
There are a couple of parameters that further customize the behavior of the select2 widget. Some of the most useful ones are:
minimumInputLength
: number of characters that have to be entered before the autocompletion url is called to fetch matching selections from the backend; default 0
quietMillis
: number of milliseconds to wait for input before the backend is called for autocompletion
limit
: maximum number of values fetched from the autocompletion backend, default 10
user
and icon
formfield types.
user
url
: url for autocompletion, default: %SCRIPTURL{"view"}%/System/MoreFormfieldsAjaxHelper?section=select2::user;skin=text;contenttype=application/json
form
: DataForm supposed to be attached to user profile pages; this form is used to search for users, default: UserForm
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.
Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".
If you have any problems, or if the extension isn't available inconfigure
, then you can still install manually from the command-line. See http://foswiki.org/Support/ManuallyInstallingExtensions for more help.
Change History: | ||||||||||||||||
09 Apr 2015: | documentation; final bugfixing before release; updated to latest clockpicker | |||||||||||||||
26 Mar 2015: | updated list of all fontawesom icons; fixed rendering of Topic formfields values | |||||||||||||||
16 Dec 2014: | fixed thumbnails in user autocompletion; don't inherit from ListFieldDefinition for performance reasons | |||||||||||||||
22 Aug 2014: | added smarbox formfield | |||||||||||||||
04 Apr 2014: | fixed compatibility with foswiki >= 1.2.0 | |||||||||||||||
23 Sep 2010: | initial release | |||||||||||||||
Dependencies: |
|
|||||||||||||||
Home page: | Foswiki:Extensions/MoreFormfieldsPlugin |
Author | Michael Daum |
Version | 1.00 |
Release | 09 Apr 2015 |
Repository | https://github.com/foswiki/MoreFormfieldsPlugin |
Copyright | © 2010-2015 Michael Daum http://michaeldaumconsulting.com |
License | GPL (Gnu General Public License) |
Home | http://foswiki.org/Extensions/MoreFormfieldsPlugin |
Support | Foswiki:Support/MoreFormfieldsPlugin |