ICFormField
ICFormField
This class represents formField data for form attachment
getType
This method is used to get the formField type (Text/Name/Email/Integer/Decimal/Date/Dropdown)
Syntax: public ICFormFieldType getType()
Returns: formField Type
setType
This method sets the type of the FormField.
Syntax: public void setType(ICFormFieldType type)
Parameters: type - type of the formField
getName
This method is used to get the formField name
Syntax: ``public java.lang.String getName()
Returns: formField name
setName
This method sets the name of the FormField.
Syntax: public void setName(java.lang.String name)
Parameters: name - name of the FormField
getLabel
This method is used to get the formField label
Syntax: public java.lang.String getLabel()
Returns: formField label
setLabel
This method sets the label of the FormField.
Syntax: public void setLabel(java.lang.String label)
Parameters: label - formField label
getValue
This method is used to get the formField Value
Syntax: public java.lang.String getValue()
Returns: formField Value from user
setValue
This method sets the value of the FormField from user.
Syntax: public void setValue(java.lang.String value)
Parameters: value - formField value from user
getDescription
This method is used to get the formField description
Syntax: public java.lang.String getDescription()
Returns: formField description
setDescription
This method sets the description of the FormField.
Syntax: public void setDescription(java.lang.String description)
Parameters: description -
getMandatory
This method returns whether it is mandatory for user to fill FormField value.
Syntax: public java.lang.Boolean getMandatory()
Returns: Returns true if it is mandatory for the current user to fill formField value.
setMandatory
This method sets whether it is mandatory to fill form field value or not.
Syntax: public void setMandatory(java.lang.Boolean mandatory)
Parameters: mandatory - - true if it is mandatory for the current user to fill form field value
getOptions
This method is used to get the options for FormField type "Dropdown"
Syntax: public java.util.List<java.lang.String> getOptions()
Returns: options for formField Type "dropdown"
setOptions
This method sets options for FormField type "dropdown"
Syntax: public void setOptions(java.util.List<java.lang.String> options)
Parameters: options - - options for formField Type "dropdown"
toJSON
This method returns a new JSONObject instance containing form field data.
Syntax: public JSONObject toJSON() throws JSONException
Returns: A JSONObject representation of the form field data.
Throws: org.json.JSONException
fromJSON
Instantiates a new ICFormField instance from the supplied JSONObject.
Syntax: public static ICFormField fromJSON(org.json.JSONObject jsonObject)
Parameters: jsonObject - A valid JSONObject instance containing form field data.
Returns: A new ICFormField or null if jsonObj is null.
setValues
This method to set the action URL for the interactive data.
Syntax: void setValues(String values)
Parameters:
Parameters | Type | Description |
---|---|---|
List | Type | The Form Field multi select drop down values |
getValues()
This method is used to return the Form Field multi select drop down values.
Syntax: List getValues()
Return Value: Form Field multi select drop down values
Updated about 1 year ago