FormProvider

interface FormProvider

Handles all form related operations on the owning document. Retrieve it with getFormProvider.

Functions

Link copied to clipboard
abstract fun <T : FormElementConfiguration?> addFormElementsToPage(@NonNull fullyQualifiedName: String, @NonNull formElementConfigurations: List<T>): FormField
Allows to programmatically create and insert a form field into the document.
Link copied to clipboard
abstract fun <T : FormElementConfiguration?> addFormElementsToPageAsync(@NonNull fullyQualifiedName: String, @NonNull formElementConfigurations: List<T>): Single<FormField>
Allows to programmatically create and insert a form field into the document, asynchronously.
Link copied to clipboard
abstract fun <T : FormElementConfiguration?> addFormElementToPage(@NonNull fullyQualifiedName: String, @NonNull formElementConfiguration: T): FormField
Allows to programmatically create and insert a form field into the document.
Link copied to clipboard
abstract fun <T : FormElementConfiguration?> addFormElementToPageAsync(@NonNull fullyQualifiedName: String, @NonNull formElementConfiguration: T): Single<FormField>
Allows to programmatically create and insert a form field into the document, asynchronously.
Link copied to clipboard
Adds OnButtonFormFieldUpdatedListener to get notified when button fields get updated.
Link copied to clipboard
Adds OnChoiceFormFieldUpdatedListener to get notified when choice fields get updated.
Link copied to clipboard
Adds OnFormFieldUpdatedListener to get notified when any form field gets updated.
Link copied to clipboard
Adds OnFormTabOrderUpdatedListener to get notified when form tab order has been recalculated.
Link copied to clipboard
Adds OnTextFormFieldUpdatedListener to get notified when text fields get updated.
Link copied to clipboard
Finds a form element for widget annotation.
Link copied to clipboard
Finds a form element for widget annotation, asynchronously.
Link copied to clipboard
Returns a list of all form elements in the document.
Link copied to clipboard
abstract fun getFormElementsAsync(): Single<List<FormElement>>
Returns a list of all form elements in the document, asynchronously.
Link copied to clipboard
Searches for a form element by name.
Link copied to clipboard
abstract fun getFormElementWithNameAsync(@NonNull fieldName: String): Maybe<FormElement>
Searches for a form element with a given name, asynchronously.
Link copied to clipboard
Returns a list of all form fields in the document.
Link copied to clipboard
abstract fun getFormFieldsAsync(): Single<List<FormField>>
Returns the list of all form fields in the document, asynchronously.
Link copied to clipboard
Searches for a form field with fully qualified field name.
Link copied to clipboard
abstract fun getFormFieldWithFullyQualifiedNameAsync(@NonNull fullyQualifiedName: String): Maybe<FormField>
Searches for a form field with fully qualified field name, asynchronously.
Link copied to clipboard
Returns order of FormElement for document.
Link copied to clipboard
abstract fun getTabOrderAsync(): Single<List<FormElement>>
Returns order of FormElement for document, asynchronously.
Link copied to clipboard
abstract fun hasUnsavedChanges(): Boolean
Returns whether form fields in this document were modified or not.
Link copied to clipboard
Allows to programmatically remove a form element from the document.
Link copied to clipboard
abstract fun removeFormElementFromPageAsync(@NonNull formElement: FormElement): Single<Boolean>
Allows to programmatically remove a form element from the document, asynchronously.