Form Provider
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
abstract fun addOnButtonFormFieldUpdatedListener(@NonNull listener: FormListeners.OnButtonFormFieldUpdatedListener)
Adds OnButtonFormFieldUpdatedListener to get notified when button fields get updated.
Link copied to clipboard
abstract fun addOnChoiceFormFieldUpdatedListener(@NonNull listener: FormListeners.OnChoiceFormFieldUpdatedListener)
Adds OnChoiceFormFieldUpdatedListener to get notified when choice fields get updated.
Link copied to clipboard
abstract fun addOnFormFieldUpdatedListener(@NonNull listener: FormListeners.OnFormFieldUpdatedListener)
Adds OnFormFieldUpdatedListener to get notified when any form field gets updated.
Link copied to clipboard
abstract fun addOnFormTabOrderUpdatedListener(@NonNull listener: FormListeners.OnFormTabOrderUpdatedListener)
Adds OnFormTabOrderUpdatedListener to get notified when form tab order has been recalculated.
Link copied to clipboard
abstract fun addOnTextFormFieldUpdatedListener(@NonNull listener: FormListeners.OnTextFormFieldUpdatedListener)
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
abstract fun getFormElementForAnnotationAsync(@NonNull annotation: WidgetAnnotation): Maybe<FormElement>
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
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
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
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
Returns order of FormElement for document, asynchronously.
Link copied to clipboard
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
Allows to programmatically remove a form element from the document, asynchronously.
Link copied to clipboard
abstract fun removeOnButtonFormFieldUpdatedListener(@NonNull listener: FormListeners.OnButtonFormFieldUpdatedListener)
Removes previously registered OnButtonFormFieldUpdatedListener.
Link copied to clipboard
abstract fun removeOnChoiceFormFieldUpdatedListener(@NonNull listener: FormListeners.OnChoiceFormFieldUpdatedListener)
Removes previously registered OnChoiceFormFieldUpdatedListener.
Link copied to clipboard
abstract fun removeOnFormFieldUpdatedListener(@NonNull listener: FormListeners.OnFormFieldUpdatedListener)
Removes previously registered OnFormFieldUpdatedListener.
Link copied to clipboard
abstract fun removeOnFormTabOrderUpdatedListener(@NonNull listener: FormListeners.OnFormTabOrderUpdatedListener)
Removes previously registered OnFormTabOrderUpdatedListener.
Link copied to clipboard
abstract fun removeOnTextFormFieldUpdatedListener(@NonNull listener: FormListeners.OnTextFormFieldUpdatedListener)
Removes previously registered OnTextFormFieldUpdatedListener.