Loading...
 

Plugin Tracker Prefill

Introduced in Tiki2

Use this wiki plugin for trackers to display a button with a link to a page containing a tracker plugin PluginTracker. In the parameters, you will be able to specify default values for some fields.

Parameters

Create a button to prefill tracker fields
Introduced in Tiki 2. Required parameters are in bold.
Go to the source code
Preferences required: feature_trackers, wikiplugin_trackerprefill

Parameters Accepted Values Description Default Since
value1 any string except for HTML and PHP tags Content that should be used to prefill the field. 2.0
field1 digits Field ID for the first field 2.0
page pagename Tracker page name 2.0
label text Button Label. 2.0
urlparams any string except for HTML and PHP tags Parameters to pass in the URL, for example, &my_parameter1=123&my_parameter2=q 6.0
value2 any string except for HTML and PHP tags Content that should be used to prefill the field. 2.0
value3 any string except for HTML and PHP tags Content that should be used to prefill the field. 2.0
value4 any string except for HTML and PHP tags Content that should be used to prefill the field. 2.0
value5 any string except for HTML and PHP tags Content that should be used to prefill the field. 2.0
value6 any string except for HTML and PHP tags Content that should be used to prefill the field. 2.0
value7 any string except for HTML and PHP tags Content that should be used to prefill the field. 2.0
value8 any string except for HTML and PHP tags Content that should be used to prefill the field. 2.0
field2 digits Field ID for the second field 2.0
field3 digits Field ID for the third field 2.0
field4 digits Field ID for the fourth field 2.0
field5 digits Field ID for the fifth field 2.0
field6 digits Field ID for the sixth field 2.0
field7 digits Field ID for the seventh field 2.0
field8 digits Field ID for the eighth field 2.0

Example

Copy to clipboard
{trackerprefill page="Order" label="Order" field1="2" value1="Shoes" field2="3" value2="10"}


The above syntax will create a button labelled "Order" that will link to tiki-index_raw.php?page=Order&prefills=2:3&values[]=Shoes&values[]=10
If the wiki page named "Order" contains a tracker plugin with 2 fields (2 and 3), the tracker form will prefill in the fields 2 and 3 values "Shoes" and "10".

List Slides