InAppFormField
A class represents a form field.
Class representing a form field.
Properties
Properties | Type | Description |
---|---|---|
description | String | The description of the form field.var description: String? |
isMandatory | Boolean | The flag indicating whether the field is mandatory.var isMandatory: Boolean |
label | String | The label of the form field.var label: String? |
name | String | The name of the form field.var name: String? |
options | ArrayList | The options for the form field.var options: ArrayList<String> |
type | InAppFormFieldType | The type of the form field.var type: InAppFormFieldType |
value | String | The value of the form field.var value: String? |
values | ArrayList | The values for the form field.var values: ArrayList<String> |
Functions
toJson
Converts the form field to a JSON object.
Syntax: fun toJson(): JSONObject
Return Value: The JSON object representing the form field.
Companion Functions
fromJson
Converts a JSONObject to an form field.
Syntax: fun fromJson(jsonObject: JSONObject): InAppFormField
Return Value The form field converted from the JSONObject.
Parameters
Parameters | Value | Description |
---|---|---|
jsonObject | JSONObject | The JSONObject to convert. |
Updated 18 days ago