Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
A useable Form Validator plugin must extends either org.joget.apps.form.model.FormValidator or org.joget.apps.form.model.FormMultiRowValidator abstract class.
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.
Base class for implementations to validate values for an element.
public abstract boolean validate(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData data, java.lang.String[] values)
Validate the submitted values for an element.
public java.lang.String getElementDecoration()
Return the HTML decoration for the attached element, e.g. marking a required field.
public java.lang.String getElementDecoration(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)
Return the HTML decoration for the attached element, e.g. marking a required field.
public org.joget.apps.form.model.Element getElement()
Gets Element that this validator is tied to.
public void setElement(org.joget.apps.form.model.Element element)
Sets Element that this validator is tied to.
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.
Base class for implementations to validate multi row data for an element e.g. Grid.
public abstract boolean validate(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData data, org.joget.apps.form.model.FormRowSet rows)
Validate the submitted rows for an element.
public java.lang.String getElementDecoration()
Return the HTML decoration for the attached element, e.g. marking a required field.
public java.lang.String getElementDecoration(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)
Return the HTML decoration for the attached element, e.g. marking a required field.
public org.joget.apps.form.model.Element getElement()
Gets Element that this validator is tied to.
public void setElement(org.joget.apps.form.model.Element element)
Sets Element that this validator is tied to.
Please refer to Plugin Properties Options for more information.