Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

{
    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>',
&nbsp; &nbsp; *label* : '

{

<span style="color: #0000ff

}Property Label{color}

">Property Label</span>',
&nbsp; &nbsp; *description* : '

{

<span style="color: #0000ff

}Property Description{color}

">Property Description</span>', <span 

{

style="color: #99cc00

}

">//optional, default is 

NULL{color}

NULL</span>
&nbsp; &nbsp; *type* : '

{

<span style="color:

#ff6600}grid{color}

 #ff6600">grid</span>',
&nbsp; &nbsp; *columns* : \[

{

<span style="color: #99cc00

}

">// 2 types of column, with and without options 

attribute{color}

attribute</span>
&nbsp; &nbsp; &nbsp; &nbsp; {*key* : '

{

<span style="color:

#0000ff}col1{color}

 #0000ff">col1</span>', *label* : '

{

<span style="color: #0000ff

}Col 1{color}

">Col 1</span>'},
&nbsp; &nbsp; &nbsp; &nbsp; {*key* : '

{

<span style="color:

#0000ff}col2{color}

 #0000ff">col2</span>', *label* : '

{

<span style="color: #0000ff

}Col 2{color}

">Col 2</span>',
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *options* :\[
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {*value* :'

{

<span style="color:

#0000ff}option1{color}

 #0000ff">option1</span>', *label* : '

{

<span style="color: #0000ff

}Option 1{color}

">Option 1</span>'},
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {*value* :'

{

<span style="color:

#0000ff}option2{color}

 #0000ff">option2</span>', *label* : '

{

<span style="color: #0000ff

}Option 2{color}

">Option 2</span>'}
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \]
&nbsp; &nbsp; &nbsp; &nbsp; },
&nbsp; &nbsp; \]

,

Wiki Markup
&nbsp; &nbsp;

*value*:\[ &nbsp; <span 

: \[{color:#99cc00}//optional, default is NULL

style="color: #99cc00">&nbsp;</span><span style="color: #99cc00"><em>//Optional. Default is null. The name

matches

 of each sub-object must match a key 

in

from the columns 

specified above{color} {col1 : 'abc', col2 : 'option1'},

object above. (e.g. col1 below matches col1 in one of the columns:key names above)</em></span>
&nbsp; &nbsp; &nbsp; &nbsp;\{ 

{

col1 : '

{

<span style="color:

#0000ff}def{color}

 #0000ff">abc</span>', col2 : '

{

<span style="color:

#0000ff}option2{color}'}

 #0000ff">option1</span>' }, &nbsp; &nbsp; 

\],

&nbsp;

&nbsp;

*required* : '{color:#0000ff}true{color}', {color:#99cc00}

        {col1 : 'def', col2 : 'option2'}

    ],
    required : 'true', //optional,

boolean

value,

default

is

false

{color}


}

Extra Attributes for Element Select Field

{
    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
}

...