Auto-Navigation for Form Filling
ComPDFKit for Web supports automatic navigation to the next form field after a user completes filling the current one.
After WebViewer is initialized, auto-navigation for form filling is disabled by default. You can enable auto-navigation for forms or signatures with setConsecutiveType
API after initialization.
javascript
docViewer.setConsecutiveType('signForm') // signForm || sign || form
// Disable auto-navigation for form filling
docViewer.setConsecutiveType(false)
1
2
3
4
2
3
4
Additionally, during navigation, you can use the enableSkipNoRequired
and disableSkipNoRequired
API to set whether to skip non-required form fields or signatures. You can also use isSkipNoRequired
to check if non-required form fields or signatures are currently being skipped.
javascript
docViewer.enableSkipNoRequired()
docViewer.disableSkipNoRequired()
const isSkipNoRequired = docViewer.isSkipNoRequired()
1
2
3
4
5
2
3
4
5