ICFormTemplateAttachment

This class represents Form template attachment

setTitle

This method sets the form template attachment title

Parameters:

Parameter

Type

Description

title

String

form template attachment title

getTitle

This method returns the form template attachment title.

Return Value: Returns String the form template attachment title.

setFields

This method sets an array of form field data

Parameters: 

Parameter

Type

Description

fields

array

An array of form field data

getFields

This method returns the array of form field data.

Return Value: Returns array of form field data.

toJSON

This method returns a new JSONObject instance containing form template attachment data.

Return Value: Returns JSONObject representation of the form template attachment data.

fromJSON

Instantiates a new ICFormTemplateAttachment instance from the supplied JSONObject.

Parameters:

Parameter

Type

Description

jsonObject

JSONObject

A valid JSONObject instance containing form template attachment data.

Return Value: Returns A new ICFormTemplateAttachment or null if jsonObject is null.