Versions Compared

Key

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

...

formatData
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

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:

String id = FormUtil.getElementParameterName(this);
formData.addFormError(id, "Error!!");
render

 

renderErrorTemplate
renderReadOnlyTemplate

...

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

Returns the immediate parent for this element.

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

Sets the immediate parent for this element.

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.

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

Get load binder

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

Set load binder

getOptionsBinder
public org.joget.apps.form.model.FormLoadBinder getOptionsBinder()
setOptionsBinder
public void setOptionsBinder(org.joget.apps.form.model.FormLoadBinder optionsBinder)
getStoreBinder
public org.joget.apps.form.model.FormStoreBinder getStoreBinder()
setStoreBinder
public void setStoreBinder(org.joget.apps.form.model.FormStoreBinder storeBinder)
getValidator
public org.joget.apps.form.model.Validator getValidator()
setValidator
public void setValidator(org.joget.apps.form.model.Validator validator)
getCustomParameterName
public java.lang.String getCustomParameterName()

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

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

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

getDefaultPropertyValues
public java.lang.String getDefaultPropertyValues()

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

org.joget.apps.form.model.AbstractSubForm

...

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

...