Function useFormSubmissionState
- useFormSubmissionState(form, initialSubmission?, lastElementUpdated?): [{
definition: Form;
executedLookups: ExecutedLookups;
lastElementUpdated: undefined | FormElement;
submission: {
[name: string]: unknown;
};
}, Dispatch<SetStateAction<{
definition: Form;
executedLookups: ExecutedLookups;
lastElementUpdated: undefined | FormElement;
submission: {
[name: string]: unknown;
};
}>>]
-
Parameters
-
-
Optional
initialSubmission: {
[name: string]: unknown;
}
-
Optional
lastElementUpdated: FormElement
Returns [{
definition: Form;
executedLookups: ExecutedLookups;
lastElementUpdated: undefined | FormElement;
submission: {
[name: string]: unknown;
};
}, Dispatch<SetStateAction<{
definition: Form;
executedLookups: ExecutedLookups;
lastElementUpdated: undefined | FormElement;
submission: {
[name: string]: unknown;
};
}>>]
This function is a simple wrapper around the react hook
useState()
. The results can be passed to the<OneBlinkForm />
//TODO: Fix link component.Example