This API service lets you manage the different functionalities in a form.
Fetch choices
Methods
fetchChoices(of:in:fromIndex:completionHandler:)This fetches 50 choices (if available) from the given Index for the lookup fields beyond the 500 choices (if available) that are fetched along with the form metadata.
fetchChoices(forSearchString:of:in:fromIndex:completionHandler:)This fetches the 50 most relevant choices (if available) for the given search string in the lookup fields.
fetchChoices(forReportLinkName:of:in:fromIndex:completionHandler:)This fetches 50 choices (if available) from the given Index for the lookup fields beyond the 500 choices (if available) that are fetched along with the form metadata while adding record from the report.
fetchChoices(forReportLinkName:forSearchString:of:in:fromIndex:completionHandler:)This fetches the 50 most relevant choices (if available) for the given search string in the lookup fields while adding record from the report.
fetchChoices(withRecordID:forReportLinkName:of:in:fromIndex:completionHandler:)This fetches 50 choices (if available) from the given Index for the lookup fields beyond the 500 choices (if available) that are fetched along with the form metadata while editing a record in the report.
fetchChoices(withRecordID:forReportLinkName:forSearchString:of:in:fromIndex:completionHandler:)This fetches the 50 most relevant choices (if available) for the given search string in the lookup fields while editing a record in the report.
Parameters
| fieldAccessPath | The access path of field for which the choices are to be fetched. |
|---|---|
| form | The Form object which holds the choice field. |
| index | Index from which the choices are to be fetched. |
| completionHandler | The choices and Error will be returned to the completionHandler. |
Parameters
| searchString | A string that has to be searched on the available choices. |
|---|---|
| fieldAccessPath | The access path of field for which the choices are to be fetched. |
| form | The Form object which holds the choice field. |
| index | Index from which the choices are to be fetched. |
| completionHandler | The choices and Error will be returned to the completionHandler. |
Parameters
| reportLinkName | The report link name. |
|---|---|
| fieldAccessPath | The access path of field for which the choices are to be fetched. |
| form | The Form object which holds the choice field. |
| index | Index from which the choices are to be fetched. |
| completionHandler | The choices and Error will be returned to the completionHandler. |
Parameters
| reportLinkName | The report link name. |
|---|---|
| searchString | A string that has to be searched on the available choices. |
| fieldAccessPath | The access path of field for which the choices are to be fetched. |
| form | The Form object which holds the choice field. |
| index | Index from which the choices are to be fetched. |
| completionHandler | The choices and Error will be returned to the completionHandler. |
Parameters
| recordID | The ID of the record that needs to be updated. |
|---|---|
| reportLinkName | The report link name. |
| fieldAccessPath | The access path of field for which the choices are to be fetched. |
| form | The Form object which holds the choice field. |
| index | Index from which the choices are to be fetched. |
| completionHandler | The choices and Error will be returned to the completionHandler. |
Parameters
| recordID | The ID of the record that needs to be updated. |
|---|---|
| reportLinkName | The report link name. |
| searchString | A string that has to be searched on the available choices. |
| fieldAccessPath | The access path of field for which the choices are to be fetched. |
| form | The Form object which holds the choice field. |
| index | Index from which the choices are to be fetched. |
| completionHandler | The choices and Error will be returned to the completionHandler. |