...
{
size : '50', //optional , integer value, default is NULL, only for text field and password field
maxlength : '50', //optional, integer value, default is NULL, only for text field and password field
rows : '50', //optional, integer value, default is NULL, only for text area and html editor
cols : '50', //optional, integer value, default is NULL , only for text area and html editor
regex_validation : '^ Wiki Markup |
---|
\[a-zA-Z0-9_\|KB:a-zA-Z0-9_\] |
+$', //optional, default is NULL
validation_message : 'Error!!' //optional, default is NULL
}
...
{
name : 'Property Name',
type : 'hidden',
value : 'Property Value'
}
Attributes for Grid
Wiki Markup |
---|
{
*name* : ' |
{<span style="color: #0000ff |
}Property Name{color}">Property Name</span>',
*label* : ' |
{<span style="color: #0000ff |
}Property Label{color}">Property Label</span>',
*description* : ' |
{<span style="color: #0000ff |
}Property Description{color}">Property Description</span>', <span |
{}NULL{color}NULL</span>
*type* : ' |
{#ff6600}grid{color} #ff6600">grid</span>',
*columns* : \[ |
{<span style="color: #99cc00 |
}">// 2 types of column, with and without options |
attribute{color}attribute</span>
{*key* : ' |
{#0000ff}col1{color} #0000ff">col1</span>', *label* : ' |
{<span style="color: #0000ff |
}Col 1{color}">Col 1</span>'},
{*key* : ' |
{#0000ff}col2{color} #0000ff">col2</span>', *label* : ' |
{<span style="color: #0000ff |
}Col 2{color}">Col 2</span>',
*options* :\[
{*value* :' |
{#0000ff}option1{color} #0000ff">option1</span>', *label* : ' |
{<span style="color: #0000ff |
}Option 1{color}">Option 1</span>'},
{*value* :' |
{#0000ff}option2{color} #0000ff">option2</span>', *label* : ' |
{<span style="color: #0000ff |
}Option 2{color}">Option 2</span>'}
\]
},
\] |
: \[{color:#99cc00}//optional, default is NULLstyle="color: #99cc00"> </span><span style="color: #99cc00"><em>//Optional. Default is null. The name |
matches of each sub-object must match a key |
inspecified above{color}
{col1 : 'abc', col2 : 'option1'},object above. (e.g. col1 below matches col1 in one of the columns:key names above)</em></span>
\{ |
{{#0000ff}def{color} #0000ff">abc</span>', col2 : ' |
{#0000ff}option2{color}'}
#0000ff">option1</span>' }, |
\],
*required* : '{color:#0000ff}true{color}', {color:#99cc00} {col1 : 'def', col2 : 'option2'}
],
required : 'true', //optional,
boolean
value,
default
is
false
{color}
}
{
options_ajax_on_change : 'property1', //optional, this property name and value will passed as HTTP request parameter to the URL defined in the options_ajax property
options_ajax : ' Wiki Markup |
---|
\[KB:CONTEXT_PATH\] |
/web/property/json/getElements?classname= org.joget.apps.form.model.FormLoadElementBinder', //Load plugin list based on class name given
url : ' Wiki Markup |
---|
\[KB:CONTEXT_PATH\] |
/web/property/json Wiki Markup |
---|
\[KB:APP_PATH\] |
/getPropertyOptions', //Load plugin properties
keep_value_on_change : 'true' //optional, boolean value, default is false. To keep current configuration for the next selected element
}
...