Usages
- Extend types of fields available in Form Builder.
- A useable Form Field Element plugin must extends org.joget.apps.form.model.Element abstract class and implements org.joget.apps.form.model.FormBuilderPaletteElement interface.
Abstract Class
org.joget.apps.form.model.Element
- Under wflow-core module
- Extended org.joget.plugin.base.ExtDefaultPlugin. Please refer to Plugin Base Abstract Class and Interface.
- Implemented org.joget.plugin.property.model.PropertyEditable. Please refer to Plugin Base Abstract Class and Interface.
- A base abstract class to develop a Form Field Element plugin.
- All forms, containers and form fields must extend this class.
Method Detail
Abstract Methods
renderTemplate
Overridable Methods
formatData
formatDataForValidation
selfValidate
render
renderErrorTemplate
renderReadOnlyTemplate
continueValidation
getDynamicFieldNames
hasError
isAuthorize
Utility Methods
getChildren
getChildren
setChildren
getParent
setParent
getPrimaryKeyValue
getLoadBinder
setLoadBinder
getOptionsBinder
setOptionsBinder
getStoreBinder
setStoreBinder
getValidator
setValidator
getCustomParameterName
setCustomParameterName
getDefaultPropertyValues
toString
org.joget.apps.form.model.AbstractSubForm
- Under wflow-core module
- Extended org.joget.apps.form.model.Element.
- Implemented org.joget.apps.form.model.FormContainer.
- Use to develop a Form Field element which embed a Form as its child.
Field Detail
Constants
PROPERTY_PARENT_SUBFORM_ID
PROPERTY_SUBFORM_PARENT_ID
Method Detail
Overridable Methods
loadSubForm
updateElementParameterNames
populateParentWithSubFormKey
populateSubFormWithParentKey
checkForRecursiveForm
getSubForm
Interface
org.joget.apps.form.model.FormBuilderPaletteElement
- Under wflow-core module
- Extends interface org.joget.apps.form.model.FormBuilderEditable.
- Interface that describes meta information used for adding an element into the Form Builder palette.
Method Detail
Interface Methods
getFormBuilderCategory
public java.lang.String getFormBuilderCategory()
Category for the element in the Form Builder palette
getFormBuilderPosition
public int getFormBuilderPosition()
Ordering position. Palette to display based on the position value in ascending order for a category.
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.
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.
getFormBuilderTemplate
public java.lang.String getFormBuilderTemplate()
HTML template used for display a new added field in the Form Builder
org.joget.apps.form.model.FormContainer
Under wflow-core module
This interface indicate that a Form Field Element is a container and should not create a form data column in database.
- No interface method is available in this interface
org.joget.apps.form.model.FormOptionsElement
Under wflow-core module
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.
No interface method is available in this interface
org.joget.apps.form.model.FormAjaxOptionsElement
Under wflow-core module
- Extends interface org.joget.apps.form.model.FormOptionsElement.
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 which implemented org.joget.apps.form.model.FormAjaxOptionsBinder to populate its options using AJAX.
Method Detail
Interface Methods
useAjax
public boolean useAjax()
Use to decide this field is using AJAX to load its options or not.
loadAjaxOptions
public org.joget.apps.form.model.FormRowSet loadAjaxOptions(java.lang.String[] dependencyValues)
Retrieve options based on dependency values
org.joget.apps.form.model.FormReferenceDataRetriever
Under wflow-core module
- Indicate that this field hold the primary keys for other form data records. The reference records can be retrieve using its interface method.
- 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.
Method Detail
Interface Methods
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.
Plugin Proeprties Options
Mandatory Property
Predefined Property
Tutorials
- Not available right now
Related Community Plugins
- Not available right now