new module:api/FormManagementApi(apiClient)
- Source:
Constructs a new FormManagementApi.
Parameters:
| Name | Type | Description |
|---|---|---|
apiClient |
module:ApiClient | Optional API client implementation to use, |
Methods
getForm(accountId, formId, optsOrCallback, callback)
- Source:
Get Form
Retrieves form information filter by form id and state. The state parameter is optional and can accept value from draft, active.
Parameters:
| Name | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
accountId |
String | Account identifier in which the web form resides |
||||||
formId |
String | Unique identifier for a web form that is consistent for it's lifetime |
||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
||||||
callback |
module:api/FormManagementApi~getFormCallback | The callback function, accepting three arguments: error, data, response |
listForms(accountId, optsOrCallback, callback)
- Source:
List Forms
List all the forms for the active user that can be in an active or draft state
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
accountId |
String | Account identifier in which the webform resides |
||||||||||||||||||||||||
optsOrCallback |
Object | Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. Properties
|
||||||||||||||||||||||||
callback |
module:api/FormManagementApi~listFormsCallback | The callback function, accepting three arguments: error, data, response |
Type Definitions
getFormCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the getForm operation. If none specified a Promise will be returned.
Parameters:
| Name | Type | Description |
|---|---|---|
error |
String | Error message, if any. |
data |
module:model/WebForm | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
listFormsCallback(error, data, If)
- Source:
(Optional) Callback function to receive the result of the listForms operation. If none specified a Promise will be returned.
Parameters:
| Name | Type | Description |
|---|---|---|
error |
String | Error message, if any. |
data |
module:model/WebFormSummaryList | The data returned by the service call. |
If |
String | a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |