new AfFormData(params)
Creates an instance of AfFormData.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params |
object | The parameters for initializing the AfFormData object. Properties
|
Methods
-
getData()
-
Returns the actual form data.
Returns:
The form data.
- Type
- *
-
getContentType()
-
Returns the content type of the form data.
Returns:
The content type.
- Type
- string
-
getAttachments()
-
Returns the list of attachments.
Returns:
The attachments.
- Type
- Array
-
toHTMLFormData()
-
This returns the html form data representation of adaptive form data. This could be used to submit the adaptive form data to external end point from the client. The HTML form data contains the following the key / value pairs:
- data -> contains form data represented as string
- contentType -> contains content type of form data (it would be application/xml or application/json)
- fileAttachments -> list of blobs containing the file (in case of fileUrl's the type of blob would be application/json)
- fileAttachmentBindRefs -> list of string containing file bindRef's, this has one to one mapping with fileAttachments
Returns:
The HTML form data.
- Type
- *
-
toJsObject()
-
Returns the JavaScript object representation of adaptive form data.
Returns:
The JavaScript object.
- Type
- object