Update acroform.js

Updated error text document.initForms() to document.initForm() as correct method name is initForm()
This commit is contained in:
Andrei Augustin 2024-07-16 17:36:34 +03:00 committed by GitHub
parent b35c6f9179
commit 76cdedd967
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -181,7 +181,7 @@ export default {
_fieldDict(name, type, options = {}) {
if (!this._acroform) {
throw new Error(
'Call document.initForms() method before adding form elements to document'
'Call document.initForm() method before adding form elements to document'
);
}
let opts = Object.assign({}, options);