Class: AfFormData

AfFormData


new AfFormData(params)

Creates an instance of AfFormData.

Parameters:
Name Type Description
params object

The parameters for initializing the AfFormData object.

Properties
Name Type Description
data object

The form data.

attachments string

The attachments.

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:

  1. data -> contains form data represented as string
  2. contentType -> contains content type of form data (it would be application/xml or application/json)
  3. fileAttachments -> list of blobs containing the file (in case of fileUrl's the type of blob would be application/json)
  4. 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

Class: AfFormData

AfFormData

Class to represent Adaptive Form data


new AfFormData()

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:

  1. data -> contains form data represented as string
  2. contentType -> contains content type of form data (it would be application/xml or application/json)
  3. fileAttachments -> list of blobs containing the file (in case of fileUrl's the type of blob would be application/json)
  4. 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