License Error

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

License Error

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

  • org.joget.apps.form.service.FormUtil
  • Under wflow-core module
  • Utility methods for the Form module.

Code Sample

License Error

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

import org.joget.apps.app.dao.FormDefinitionDao;
import org.joget.apps.app.model.FormDefinition;
import org.joget.apps.app.model.AppDefinition;
import org.joget.apps.app.service.AppUtil;
import org.joget.apps.form.model.Form;
import org.joget.apps.form.service.FormService;
import org.joget.apps.form.service.FormUtil;

AppService appService = (AppService) AppUtil.getApplicationContext().getBean("appService");
FormDefinitionDao formDefinitionDao = (FormDefinitionDao) AppUtil.getApplicationContext().getBean("formDefinitionDao");
FormService formService = (FormService) AppUtil.getApplicationContext().getBean("formService");
 
String id = "crm_account";
String appId = "crm";
Long appVersion = appService.getPublishedVersion(appId);
   
AppDefinition appDef = appService.getAppDefinition(appId, appVersion.toString());
FormDefinition formDef = formDefinitionDao.loadById(formId, appDef);
if (formDef != null) {
    //create the form
    Form form = (Form) formService.createElementFromJson(formDef.getJson(), true);
 
    //Find an element by field id
    Element e = FormUtil.findElement("accountName", form, null);
}

Fields

License Error

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

FORM_BUILDER_ACTIVE
public static final java.lang.String FORM_BUILDER_ACTIVE = "formBuilderActive";

Key used to sets the request attribute to indicate the current request is from form builder.

License Error

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

FORM_ERRORS_PARAM
public static final java.lang.String FORM_ERRORS_PARAM = "_FORM_ERRORS";

Key used to passes the form errors to the next submission for comparison.

License Error

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

FORM_META_ORIGINAL_ID
public static final java.lang.String FORM_META_ORIGINAL_ID = "_FORM_META_ORIGINAL_ID";

Key used to stores the form record id in a hidden field of a form

License Error

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

FORM_RESULT_LOAD_ALL_DATA
public static final java.lang.String FORM_RESULT_LOAD_ALL_DATA = "FORM_RESULT_LOAD_ALL_DATA";

Key used by Multi Paged Form to loads all the data from child forms.

License Error

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

PROPERTY_CLASS_NAME
public static final java.lang.String PROPERTY_CLASS_NAME = "className";

Key used to retrieves class name from properties

License Error

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

PROPERTY_CUSTOM_PROPERTIES
public static final java.lang.String PROPERTY_CUSTOM_PROPERTIES = "customProperties";

Prefix for a form id used to builds Hibernate Query (HQL) conditions 

License Error

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

PROPERTY_DATE_CREATED
public static final java.lang.String PROPERTY_DATE_CREATED = "dateCreated";

Key used to stores created data of a record

License Error

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

PROPERTY_DATE_MODIFIED
public static final java.lang.String PROPERTY_DATE_MODIFIED = "dateModified";

Key used to stores modified data of a record

License Error

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

PROPERTY_ELEMENT_UNIQUE_KEY
public static final java.lang.String PROPERTY_ELEMENT_UNIQUE_KEY = "elementUniqueKey";

Key used to to store a unique running number for element in properties

License Error

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

PROPERTY_ELEMENTS
public static final java.lang.String PROPERTY_ELEMENTS = "elements";

Key used to retrieves child elements for an element in json

License Error

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

PROPERTY_FORM_DEF_ID
public static final java.lang.String PROPERTY_FORM_DEF_ID = "formdefid";

Key used to retrieves form definition id from properties

License Error

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

PROPERTY_GROUPING
public static final java.lang.String PROPERTY_GROUPING = "grouping";

Key used to retrieves grouping from properties

License Error

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

PROPERTY_ID
public static final java.lang.String PROPERTY_ID = "id";

Key used to retrieves id from properties

License Error

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

PROPERTY_LABEL
public static final java.lang.String PROPERTY_LABEL = "label";

Key used to retrieves label from properties

License Error

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

PROPERTY_OPTIONS
public static final java.lang.String PROPERTY_OPTIONS = "options";

Key used to retrieves options from properties

License Error

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

PROPERTY_OPTIONS_DELIMITER
public static final java.lang.String PROPERTY_OPTIONS_DELIMITER = ";";

Delimiter used to separate options

License Error

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

PROPERTY_POST_PROCESSOR
public static final java.lang.String PROPERTY_POST_PROCESSOR = "postProcessor";

Key used to retrieves post processor tool from properties

License Error

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

PROPERTY_POST_PROCESSOR_RUN_ON
public static final java.lang.String PROPERTY_POST_PROCESSOR_RUN_ON = "postProcessorRunOn";

Key used to retrieves running mode of a post processor from properties

License Error

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

PROPERTY_PROPERTIES
public static final java.lang.String PROPERTY_PROPERTIES = "properties";

Key used to retrieves element properties from json

License Error

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

PROPERTY_READONLY
public static final java.lang.String PROPERTY_READONLY = "readonly";

Key used to retrieves readonly from properties

License Error

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

PROPERTY_READONLY_LABEL
public static final java.lang.String PROPERTY_READONLY_LABEL = "readonlyLabel";

Key used to retrieves display readonly as label from properties

License Error

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

PROPERTY_SELECTED
public static final java.lang.String PROPERTY_SELECTED = "selected";

Key used to retrieves selected from properties

License Error

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

PROPERTY_TABLE_NAME
public static final java.lang.String PROPERTY_TABLE_NAME = "tableName";

Key used to retrieves table name from json

License Error

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

PROPERTY_TEMP_FILE_PATH
public static final java.lang.String PROPERTY_TEMP_FILE_PATH = "_tempFilePathMap";

Key used to stores the paths of uploaded temporary files

License Error

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

PROPERTY_VALIDATOR
public static final java.lang.String PROPERTY_VALIDATOR = "validator";

Key used to retrieves validator from json

License Error

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

PROPERTY_VALUE
public static final java.lang.String PROPERTY_VALUE = "value";

Key used to retrieves value from properties

License Error

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

Methods

License Error

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

clearProcessedFormJson
public static void clearProcessedFormJson() 

Used by system to clears the current processing form json in current thread

License Error

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

executeActions
public static org.joget.apps.form.model.FormData executeActions(org.joget.apps.form.model.Form form, org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)

Utility method to recursively find and invoke actions starting from an element.

License Error

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

executeElementFormatData
public static org.joget.apps.form.model.FormData executeElementFormatData(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)

Utility method to recursively find and invoke the formatData method starting from an element.

Return a java.util.Map mapping a binder to FormRowSets containing formatted values from all elements.

License Error

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

executeElementFormatDataForValidation
public static org.joget.apps.form.model.FormData executeElementFormatDataForValidation(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)

Utility method to recursively find and invoke the formatDataForValidation method starting from an element.

License Error

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

executeLoadBinders
public static org.joget.apps.form.model.FormData executeLoadBinders(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)

Utility method to recursively traverse and invoke load binders starting from an element.

License Error

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

executeOptionBinders
public static org.joget.apps.form.model.FormData executeOptionBinders(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)

Utility method to recursively find and invoke option binders starting from an element.

License Error

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

executePostFormSubmissionProccessor
public static void executePostFormSubmissionProccessor(org.joget.apps.form.model.Form form, org.joget.apps.form.model.FormData formData)

Utility methods to execute tool after form submission

License Error

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

executeValidators
public static boolean executeValidators(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)

Utility method to recursively find and invoke validators starting from an element.

License Error

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

findAndParseElement
public static org.joget.apps.form.model.Element findAndParseElement(java.lang.String json, java.lang.String fieldId)

Finds and parses the form field element from form json by field id

License Error

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

findAndParseElementFromJsonObject
public static org.joget.apps.form.model.Element findAndParseElementFromJsonObject(org.json.JSONObject obj, java.lang.String fieldId) throws java.lang.Exception

Finds and parses the form field element from form json object by field id

License Error

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

findElement
public static org.joget.apps.form.model.Element findElement(java.lang.String id, org.joget.apps.form.model.Element rootElement, org.joget.apps.form.model.FormData formData)

Utility method to recursively find an element by ID.

License Error

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

findElement
public static org.joget.apps.form.model.Element findElement(java.lang.String id, org.joget.apps.form.model.Element rootElement, org.joget.apps.form.model.FormData formData, java.lang.Boolean includeSubForm) 

Utility method to recursively find an element by ID.

License Error

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

findLoadBinder
public static org.joget.apps.form.model.FormLoadBinder findLoadBinder(org.joget.apps.form.model.Element element)

Utility method to recursively find the nearest ancestor load binder for an element.

License Error

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

findOptionsBinder
public static org.joget.apps.form.model.FormLoadBinder findOptionsBinder(org.joget.apps.form.model.Element element)

Utility method to recursively find the nearest ancestor options binder for an element.

License Error

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

findRootForm
public static org.joget.apps.form.model.Form findRootForm(org.joget.apps.form.model.Element element)

Utility method to recursively find the parent Form for an element.

License Error

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

findStoreBinder
public static org.joget.apps.form.model.FormStoreBinder findStoreBinder(org.joget.apps.form.model.Element element)

Utility method to recursively find the nearest ancestor store binder for an element.

License Error

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

generateDefaultForm
public static java.lang.String generateDefaultForm(java.lang.String formId, org.joget.apps.app.model.FormDefinition formDef)

Utility method used to creates a new form definition json

License Error

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

generateDefaultForm
public static java.lang.String generateDefaultForm(java.lang.String formId, org.joget.apps.app.model.FormDefinition formDef, org.joget.apps.app.model.FormDefinition copyFormDef)

Utility method used to creates a new form definition json based on another form definition

License Error

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

generateDefaultTemplateDataModel
public static java.util.Map generateDefaultTemplateDataModel(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)

Generates a standard map of data to be used within an element template.

License Error

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

generateElementHtml
public static java.lang.String generateElementHtml(final org.joget.apps.form.model.Element element, final org.joget.apps.form.model.FormData formData, final java.lang.String templatePath, java.util.Map dataModel)

Generates HTML output using a FreeMarker template.

License Error

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

generateElementJson
public static java.lang.String generateElementJson(org.joget.apps.form.model.Element element) throws java.lang.Exception

Generates JSON representing an element.

License Error

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

generateElementJsonObject
public static org.json.JSONObject generateElementJsonObject(org.joget.apps.form.model.Element element) throws java.lang.Exception

Generates a JSONObject to represent an element

License Error

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

generateElementMetaData
public static java.lang.String generateElementMetaData(org.joget.apps.form.model.Element element)

Generates the HTML tag meta data for the element that is used by the form builder.

License Error

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

generateElementPropertyJson
public static java.lang.String generateElementPropertyJson(org.joget.apps.form.model.Element element)

Generates JSON representing the properties of an element.

License Error

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

generateElementPropertyValues
public static java.lang.String generateElementPropertyValues(java.lang.String[] values)

Generates a delimited string from an array of Strings.

License Error

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

generatePropertyJsonObject
public static org.json.JSONObject generatePropertyJsonObject(Map<java.lang.String, java.lang.Object> properties) throws org.json.JSONException

Generates a org.json.JSONObject to represent the properties of an element

License Error

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

getAjaxOptionsBinderData
public static org.joget.apps.form.model.FormRowSet getAjaxOptionsBinderData(java.lang.String dependencyValue, org.joget.apps.app.model.AppDefinition appDef, java.lang.String nonce, java.lang.String binderData)

Gets data from Options Binder for AJAX call

License Error

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

getApplicationContext
public static org.springframework.context.ApplicationContext getApplicationContext()

Utility method to retrieve the ApplicationContext of the system

License Error

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

getElementError
public static java.lang.String getElementError(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)

Retrieve the error attached to the element

License Error

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

getElementParameterName
public static java.lang.String getElementParameterName(org.joget.apps.form.model.Element element)

Returns the parameter name for the element.

License Error

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

getElementProcessedJson
public static java.lang.String getElementProcessedJson(org.joget.apps.form.model.Element element)

Utility method to convert an element to json

License Error

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

getElementPropertyOptionsMap
public static java.util.Collection<java.util.Map> getElementPropertyOptionsMap(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)

Retrieves the property options for an element, first from the element's options binder. If no binder is available, the default options are used.

License Error

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

getElementPropertyValue
public static java.lang.String getElementPropertyValue(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)

Retrieves the property value for an element, first from the element's load binder. If no binder is available, the default value is used.
Overrides the binder/default value when value from request parameter is available.

License Error

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

getElementPropertyValues
public static java.lang.String[] getElementPropertyValues(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)

Retrieves the property value for an element, first from the element's load binder. If no binder is available, the default value is used.
Overrides the binder/default value when value from request parameter is available.
This method supports multiple values for a property.

License Error

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

getElementValidatorDecoration
public static java.lang.String getElementValidatorDecoration(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)

Retrieve a decoration on an element by any attached validator, e.g. marking a required field.

License Error

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

getFormColumns
public static java.util.Collection<java.util.Map<java.lang.String, java.lang.String>> getFormColumns(org.joget.apps.app.model.AppDefinition appDef, java.lang.String formId)

Retrieve all form fields id & label in form data table

License Error

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

getProcessedFormJson
public static java.lang.String getProcessedFormJson()

Used by system to gets the current processing form json in current thread

License Error

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

getRequestParameter
public static java.lang.String getRequestParameter(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)

Returns the request parameter value for an element

License Error

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

getRequestParameterValues
public static java.lang.String[] getRequestParameterValues(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData) 

Returns the request parameter value for an element

License Error

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

getUniqueKey
public static java.lang.String getUniqueKey()

Gets a running number a unique key

License Error

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

isAjaxOptionsSupported
public static boolean isAjaxOptionsSupported(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)

Check the element is using Ajax to load options 

License Error

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

isElementPropertyValuesChanges
public static boolean isElementPropertyValuesChanges(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData, java.lang.String[] updatedValues)

Utility methods to check the value of an element is changed

License Error

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

isFormBuilderActive
public static boolean isFormBuilderActive()

Check whether request is currently in the form builder.

License Error

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

isFormSubmitted
public static boolean isFormSubmitted(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)

Check a form is submitted or not

License Error

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

isReadonly
public static boolean isReadonly(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)

Check an element is readonly or not

License Error

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

loadFormData
public static java.util.Map<java.lang.String, java.lang.Object> loadFormData(final java.lang.String appId, final java.lang.String appVersion, final java.lang.String formDefId, final java.lang.String primaryKeyValue, final boolean includeSubformData, final boolean includeReferenceElements, final boolean flatten, final org.joget.workflow.model.WorkflowAssignment assignment)

Utility method to fetch submitted form data values including data from subforms, and reference fields.
Returns a key-value pair (optionally flattened) for all the data that is part of a form submission.
The returned data includes top level form data, subform data (including recursive subforms), and data pointed by reference fields (like SelectBox pointing to a datalist item)

Parameters:
includeSubformData - true to recursively include subform data
includeReferenceElements - true to include data from reference elements e.g. selectbox, etc.
flatten - true to flatten data into a one level key-value map
assignment - Optional workflow assignment (for assignment hash variables)
Return a java.util.Map<java.lang.String,Object> representing the form data. The key is the element ID, and the value is either a java.lang.String for an element value, java.util.Map<java.lang.String,Object> representing subform data, or java.util.Collection<java.util.Map<java.lang.String,Object>> for reference fields.

License Error

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

loadFormDataJson
public static java.lang.String loadFormDataJson(java.lang.String appId, java.lang.String appVersion, java.lang.String formDefId, java.lang.String primaryKeyValue, boolean includeSubformData, boolean includeReferenceElements, boolean flatten, org.joget.workflow.model.WorkflowAssignment assignment) throws org.json.JSONException

Similar to loadFormData, returns results in JSON format.

License Error

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

parseBinderFromJsonObject
public static org.joget.apps.form.model.FormBinder parseBinderFromJsonObject(org.json.JSONObject obj, org.joget.apps.form.model.Element element, java.lang.String binderType) throws java.lang.Exception

Parse binder object from element json object

License Error

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

parseChildElementsFromJsonObject
public static void parseChildElementsFromJsonObject(org.json.JSONObject obj, org.joget.apps.form.model.Element parent) throws java.lang.Exception

Parse child elements from element json object

License Error

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

parseElementFromJson
public static org.joget.apps.form.model.Element parseElementFromJson(java.lang.String json) throws java.lang.Exception

Parses form field element from the element json string

License Error

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

parseElementFromJsonObject
public static org.joget.apps.form.model.Element parseElementFromJsonObject(org.json.JSONObject obj, org.joget.apps.form.model.Element parent) throws java.lang.Exception

Parses form field element from the element json object

License Error

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

parsePropertyFromJsonObject
public static java.util.Map<java.lang.String, java.lang.Object> parsePropertyFromJsonObject(org.json.JSONObject obj) throws org.json.JSONException 

Parses the properties attribute from a JSON object into a Map

License Error

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

parseValidatorFromJsonObject
public static org.joget.apps.form.model.Validator parseValidatorFromJsonObject(org.json.JSONObject obj) throws java.lang.Exception 

Parse validator object from element json object

License Error

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

setAjaxOptionsElementProperties
public static void setAjaxOptionsElementProperties(org.joget.apps.form.model.Element element, org.joget.apps.form.model.FormData formData)

Sets security data for multi options element which using Ajax call to load options

License Error

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

setFormBuilderActive
public static void setFormBuilderActive(java.lang.Boolean active)

Sets flag in request to indicate whether is currently in the form builder.

License Error

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

setProcessedFormJson
public static void setProcessedFormJson(java.lang.String json)

Used by system to sets the current processing form json in current thread

License Error

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

setReadOnlyProperty
public static void setReadOnlyProperty(org.joget.apps.form.model.Element element)

Recursively set the readonly property for all descendent elements.

License Error

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

setReadOnlyProperty
public static void setReadOnlyProperty(org.joget.apps.form.model.Element element, java.lang.Boolean readonly, java.lang.Boolean label) 

Recursively set the readonly property for all descendent elements.

License Error

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

  • No labels