Usages

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Abstract Class

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

org.joget.apps.form.model.Element

  • Under wflow-core module

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • Extended org.joget.plugin.base.ExtDefaultPlugin. Please refer to Plugin Base Abstract Class and Interface.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • Implemented org.joget.plugin.property.model.PropertyEditable. Please refer to Plugin Base Abstract Class and Interface.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • A base abstract class to develop a Form Field Element plugin. 

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • All forms, containers and form fields must extend this class.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Method Detail

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Abstract Methods

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

renderTemplate
public abstract java.lang.String renderTemplate(org.joget.apps.form.model.FormData formData, java.util.Map dataModel)

HTML template for front-end UI.

Parameters:

  • dataModel - Model containing values to be displayed in the template.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

     

Overridable Methods

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

formatData
public org.joget.apps.form.model.FormRowSet formatData(org.joget.apps.form.model.FormData formData)

Method that retrieves loaded or submitted form data, and formats it for a store binder. The formatted data is to be stored and returned in a FormRowSet.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

formatDataForValidation
public org.joget.apps.form.model.FormData formatDataForValidation(org.joget.apps.form.model.FormData formData)

Method for override to perform format data in request parameter before execute validation

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

selfValidate
public java.lang.Boolean selfValidate(org.joget.apps.form.model.FormData formData)

Method for override to perform specify validation for this field.

Error message can display with following code:

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

String id = FormUtil.getElementParameterName(this);
formData.addFormError(id, "Error!!");
render
public java.lang.String render(org.joget.apps.form.model.FormData formData, java.lang.Boolean includeMetaData)

Render HTML template for UI, with option for form builder design mode. This method will call abstract method renderTemplate for rendering.

Parameters:

  • includeMetaData - set true to render additional meta required for the Form Builder.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

renderErrorTemplate
public java.lang.String renderErrorTemplate(org.joget.apps.form.model.FormData formData, java.util.Map dataModel)

HTML template with errors for front-end UI. This method will call abstract method renderTemplate for rendering.

Parameters:

  • dataModel - Model containing values to be displayed in the template.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

renderReadOnlyTemplate
public java.lang.String renderReadOnlyTemplate(org.joget.apps.form.model.FormData formData, java.util.Map dataModel)

Read-only HTML template for front-end UI (Not used at the moment)

Parameters:

  • dataModel - Model containing values to be displayed in the template.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

continueValidation
public boolean continueValidation(org.joget.apps.form.model.FormData formData)

Flag to indicate whether or not continue validating descendent elements.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getDynamicFieldNames
public Collection<java.lang.String> getDynamicFieldNames()

Used to create multiple form data column in database by returning extra column names.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

hasError
public java.lang.Boolean hasError(org.joget.apps.form.model.FormData formData)

Flag to indicate whether or not this field has fail the validation process

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

isAuthorize
public java.lang.Boolean isAuthorize(org.joget.apps.form.model.FormData formData)

Flag to indicate whether or not the current logged in user is authorized to view this field in the form.

It used property key "permission" to retrieve Form Permission plugin.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Utility Methods

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getChildren
public java.util.Collection<org.joget.apps.form.model.Element> getChildren()

Retrieves all children form field element under this field

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getChildren
public void setChildren(java.util.Collection<org.joget.apps.form.model.Element> children)

Retrieves all children form field element under this field

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

setChildren
public void setChildren(java.util.Collection<org.joget.apps.form.model.Element> children)

Sets form fields as children of this field

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getParent
public org.joget.apps.form.model.Element getParent() 

Returns the immediate parent for this element.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

setParent
public void setParent(org.joget.apps.form.model.Element parent)

Sets the immediate parent for this element.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getPrimaryKeyValue
public java.lang.String getPrimaryKeyValue(org.joget.apps.form.model.FormData formData)

Returns the primary key value for the current element. Defaults to the primary key value of the form.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getLoadBinder
public org.joget.apps.form.model.FormLoadBinder getLoadBinder()

Get load binder

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

setLoadBinder
public void setLoadBinder(org.joget.apps.form.model.FormLoadBinder loadBinder)

Set load binder

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getOptionsBinder
public org.joget.apps.form.model.FormLoadBinder getOptionsBinder()

Gets an Options Binder

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

setOptionsBinder
public void setOptionsBinder(org.joget.apps.form.model.FormLoadBinder optionsBinder)

Sets an Options Binder

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getStoreBinder
public org.joget.apps.form.model.FormStoreBinder getStoreBinder()

Gets a Store Binder

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

setStoreBinder
public void setStoreBinder(org.joget.apps.form.model.FormStoreBinder storeBinder)

Sets a Store Binder

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getValidator
public org.joget.apps.form.model.Validator getValidator()

Gets a validator

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

setValidator
public void setValidator(org.joget.apps.form.model.Validator validator)

Sets a validator

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getCustomParameterName
public java.lang.String getCustomParameterName()

If non-null, this is to be used as the HTML input name for the element.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

setCustomParameterName
public void setCustomParameterName(java.lang.String customParameterName)

Sets a custom parameter name for the HTML input name of the element.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getDefaultPropertyValues
public java.lang.String getDefaultPropertyValues()

Set default Plugin Properties Options value to a new added Field in Form Builder.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

org.joget.apps.form.model.AbstractSubForm

  • Under wflow-core module

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • Extended org.joget.apps.form.model.Element.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • Implemented org.joget.apps.form.model.FormContainer.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • Use to develop a Form Field element which embed a Form as its child.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Field Detail

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Constants 

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

PROPERTY_PARENT_SUBFORM_ID
public static final String PROPERTY_PARENT_SUBFORM_ID = "parentSubFormId";

Property key that use to retrieve the field id in parent form used to store subform primary key as reference key. 

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

PROPERTY_SUBFORM_PARENT_ID
public static final String PROPERTY_SUBFORM_PARENT_ID = "subFormParentId";

Property key that use to retrieve the field id in subform used to store parent form primary key as foreign key.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.


Method Detail

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Overridable Methods

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

loadSubForm
protected org.joget.apps.form.model.Form loadSubForm(org.joget.apps.form.model.FormData parentFormData) throws org.springframework.beans.BeansException

Retrieve a Form object as subform. This method will use either value from property key "formDefId" or "json" to construct the Form object.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

updateElementParameterNames
protected void updateElementParameterNames(org.joget.apps.form.model.Element element, java.lang.String prefix)

Update all the parameter name of field elements in subform with a prefix

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

populateParentWithSubFormKey
protected void populateParentWithSubFormKey(org.joget.apps.form.model.FormData formData)

Update parent form field value with primary key of subform based on property key of this constant PROPERTY_PARENT_SUBFORM_ID.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

populateSubFormWithParentKey
protected void populateSubFormWithParentKey(org.joget.apps.form.model.FormData formData)

Update subform field value with primary key of parent form based on property key of this constant PROPERTY_SUBFORM_PARENT_ID.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

checkForRecursiveForm
protected boolean checkForRecursiveForm(org.joget.apps.form.model.Element e, java.lang.String id)

Check the subform is not exist in the parent elements tree.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getSubForm
protected org.joget.apps.form.model.Form getSubForm(org.joget.apps.form.model.FormData formData)

Get From object from its children.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Interface

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

org.joget.apps.form.model.FormBuilderPaletteElement

  • Under wflow-core module

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • Extends interface org.joget.apps.form.model.FormBuilderEditable.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • Interface that describes meta information used for adding an element into the Form Builder palette.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Method Detail

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Interface Methods

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getFormBuilderCategory
public java.lang.String getFormBuilderCategory()

Category for the element in the Form Builder palette

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getFormBuilderPosition
public int getFormBuilderPosition()

Ordering position. Palette to display based on the position value in ascending order for a category.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getFormBuilderIcon
public java.lang.String getFormBuilderIcon()

Path to icon for the element in the Form Builder palette. This path is relative to the context path. Return NULL to use the default icon.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getDefaultPropertyValues
public jva.lang.String getDefaultPropertyValues()

Set default Plugin Properties Options value to a new added Field in Form Builder. This method is implemented in org.joget.apps.form.model.Element.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getFormBuilderTemplate
public java.lang.String getFormBuilderTemplate()

HTML template used for display a new added field in the Form Builder

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

org.joget.apps.form.model.FormContainer

  • Under wflow-core module

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • This interface indicate that a Form Field Element is a container and should not create a form data column in database.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • No interface method is available in this interface

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

org.joget.apps.form.model.FormOptionsElement

  • Under wflow-core module

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • This interface indicate that a Form Field Element is a multi options field such as Select Box, Check Box & Radio Button. It can use Form Options Binder to populate its options.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • No interface method is available in this interface

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

org.joget.apps.form.model.FormAjaxOptionsElement

Method Detail

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Interface Methods

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getControlElement
public org.joget.apps.form.model.Element getControlElement(org.joget.apps.form.model.FormData formData)

Get dependent field element which use to control the options of this field

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

org.joget.apps.form.model.FormReferenceDataRetriever

  • Under wflow-core module

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • Indicate that this field hold the primary keys for other form data records. The reference records can be retrieve using its interface method.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • This interface is used by org.joget.apps.form.service.FormUtil.loadFormData() and org.joget.apps.form.service.FormUtil.loadFormDataJson() method to fetch submitted form data values including data from subforms, and reference fields.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Method Detail

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Interface Methods

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

loadFormRows
public org.joget.apps.form.model.FormRowSet loadFormRows(String[] primaryKeyValues, org.joget.apps.form.model.FormData formData)

Retrieve form data rows for an array of specified primary key values.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Plugin Properties Options

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • The following are some mandatory properties and system predefined properties can be used in your Plugin Properties Options JSON file. Please refer to Plugin Properties Options for more information.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Mandatory Property

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

id 

    • All Form Element Field must has this property appear in the Properties Options JSON.

      License Error

      The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    • This is used as unique identifier of a field in a form.  

      License Error

      The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    {
        name : 'id',
        label : '@@form.textfield.id@@',
        type : 'textfield',
        required : 'True',
        regex_validation : '^[a-zA-Z0-9_]+$',
        validation_message : '@@form.textfield.invalidId@@'
    }

Predefined Property  

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

loadBinder

  • If this property appear in the Properties Options JSON, admin user is able to choose a Form Load Binder.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • The value of this property will auto convert into Form Load Binder Plugin and the plugin can be retrieved by getLoadBinder method. 

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    {
        name:'loadBinder',
        label:'@@form.subform.loadBinder@@',
        type:'elementselect',
        options_ajax:'[CONTEXT_PATH]/web/property/json/getElements?classname=org.joget.apps.form.model.FormLoadElementBinder',
        url:'[CONTEXT_PATH]/web/property/json[APP_PATH]/getPropertyOptions',
        value:'org.joget.apps.form.lib.WorkflowFormBinder',
        required:'True'
    }

optionsBinder

  • If this property appear in the Properties Options JSON, admin user is able to choose a Form Options Binder.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • The value of this property will auto convert into Form Options Binder Plugin and the plugin can be retrieved by getOptionsBinder method.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    {
        name : 'optionsBinder',
        label : '@@form.checkbox.chooseOptionsBinder@@',
        type : 'elementselect',
        options_ajax : '[CONTEXT_PATH]/web/property/json/getElements?classname=org.joget.apps.form.model.FormLoadOptionsBinder',
        url : '[CONTEXT_PATH]/web/property/json[APP_PATH]/getPropertyOptions'
    }

permission

  • If this property appear in the Properties Options JSON, admin user is able to choose a Form Permission.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • The value of this property will auto convert into Form Permission Plugin and the plugin is used by isAuthorize method.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    {
        name:'permission',
        label:'@@form.form.permission@@',
        type:'elementselect',
        options_ajax:'[CONTEXT_PATH]/web/property/json/getElements?classname=org.joget.apps.form.model.FormPermission',
        url:'[CONTEXT_PATH]/web/property/json[APP_PATH]/getPropertyOptions'
    }

storeBinder

  • If this property appear in the Properties Options JSON, admin user is able to choose a Form Store Binder.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • The value of this property will auto convert into Form Store Binder Plugin and the plugin can be retrieved by getSoreBinder method.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    {
        name:'storeBinder',
        label:'@@form.form.storeBinder@@',
        type:'elementselect',
        options_ajax:'[CONTEXT_PATH]/web/property/json/getElements?classname=org.joget.apps.form.model.FormStoreElementBinder',
        url:'[CONTEXT_PATH]/web/property/json[APP_PATH]/getPropertyOptions'
    }

readonly

  • System use this property to flag a field a readonly. 

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • If this property appear in the Properties Options JSON, admin user can force this field to display as readonly.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • This value is ignored if the parent form is set to readonly

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    {
        name : 'readonly',
        label : '@@form.checkbox.readonly@@',
        type : 'checkbox',
        value : 'false',
        options : [{
            value : 'true',
            label : ''
        }]
    }

readonlyLabel

  • System use this property to flag a field a readonly field should display as label or not. 

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • If this property appear in the Properties Options JSON, admin user can force this field to display as label when it is readonly.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • This value is ignored if the parent form is set to display as label when it is readonly

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    {
        name : 'readonlyLabel',
        label : '@@form.checkbox.readonlyLabel@@',
        type : 'checkbox',
        value : 'false',
        options : [{
            value : 'true',
            label : ''
        }]
    }

workflowVariable

  • If this property appear in the Properties Options JSON, admin user is set to store this field value to a workflow variable.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • The value of this field will auto set to the mentioned workflow variable if the Form Store Binder is set to Default.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    {
        name : 'workflowVariable',
        label : '@@form.checkbox.workflowVariable@@',
        type : 'textfield'
    }

value

  • If this property appear in the Properties Options JSON, admin user is able to set a default value for this field.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    {
        name : 'value',
        description : '@@form.checkbox.value.desc@@',
        label : 'Default @@form.checkbox.value@@',
        type : 'textfield'
    }
validator
  • If this property appear in the Properties Options JSON, admin user is able to choose a Form Validator.

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • The value of this property will auto convert into Form Validator Plugin and the plugin can be retrieved by getValidator method. 

    License Error

    The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Form Field Element Template Sample

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Following is a sample Form Field Template of a Text Field element. It is constructed using FreeMarker syntax. This template will be used and returned by renderTemplate method.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    @Override
    public String renderTemplate(FormData formData, Map dataModel) {
        String templateName = "textField.ftl";

        // set value
        String value = FormUtil.getElementPropertyValue(this, formData);
        dataModel.put("value", value);

        String html = FormUtil.generateElementHtml(this, formData, templateName, dataModel);
        return html;
    }

  

<div class="form-cell" ${elementMetaData!}>
    <label class="label">
        ${element.properties.label} <span class="form-cell-validator">${decoration}</span>
        <#if error??>
            <span class="form-error-message">${error}</span>
        </#if>
    </label>
    <#if (element.properties.readonly! == 'true' && element.properties.readonlyLabel! == 'true') >
        <div class="form-cell-value"><span>${value!?html}</span></div>
        <input id="${elementParamName!}" name="${elementParamName!}" type="hidden" value="${value!?html}" />
    <#else>
        <input id="${elementParamName!}" name="${elementParamName!}" type="text" size="${element.properties.size!}" value="${value!?html}" maxlength="${element.properties.maxlength!}" <#if error??>class="form-error-cell"</#if> <#if element.properties.readonly! == 'true'>readonly</#if> />
    </#if>
</div>

Explanations

    • A form field element template should be wrapped under a div with "form-cell" class.

      License Error

      The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    • ${elementMetaData!} need to put in the ".form-cell" div. It is used by Form Builder.

      License Error

      The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

    • A useable field element template must handle the following states of a field. 

      License Error

      The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.


      • Has errors
      • Readonly
      • Readonly and needed to display as label
      • Normal display

Tutorials

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Related Community Plugins

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • Check Box
    org.joget.apps.form.lib.CheckBox (wflow-core)
  • Custom HTML
    org.joget.apps.form.lib.CustomHTML (wflow-core)
  • Date Picker
    org.joget.apps.form.lib.DatePicker (wflow-core)
  • File Upload
    org.joget.apps.form.lib.FileUpload (wflow-core)
  • Grid
    org.joget.apps.form.lib.Grid (wflow-core)
  • Hidden Field
    org.joget.apps.form.lib.HiddenField (wflow-core)
  • Id Generator Field
    org.joget.apps.form.lib.IdGeneratorField (wflow-core)
  • Password Field
    org.joget.apps.form.lib.PasswordField (wflow-core)
  • Radio Button
    org.joget.apps.form.lib.Radio (wflow-core)
  • Select Box
    org.joget.apps.form.lib.SelectBox (wflow-core)
  • Subform
    org.joget.apps.form.lib.SubForm (wflow-core)
  • Text Area
    org.joget.apps.form.lib.TextArea (wflow-core)
  • Text Field
    org.joget.apps.form.lib.TextField (wflow-core)



  • No labels