I recently installed Umbraco Forms on a new project. Never had this issue before and I'm not sure where it's originating. I created a new form, placed it in a template, and now I get this error in the console:
Uncaught TypeError: Cannot read property 'querySelectorAll' of null
at Object.UmbracoFormsConditions.self.watch (umbracoforms.js:370)
at init (umbracoforms.js:60)
at initCollection (umbracoforms.js:40)
at listen (umbracoforms.js:32)
at umbracoforms.js:20
at umbracoforms.js:551
I've installed Umbraco Forms 8.6.0.
The line in question is this, which is inside self.watch:
var datepickerfields = self.form.querySelectorAll('.datepickerfield');
UmbracoForms.js error on line 370
I recently installed Umbraco Forms on a new project. Never had this issue before and I'm not sure where it's originating. I created a new form, placed it in a template, and now I get this error in the console:
I've installed Umbraco Forms 8.6.0.
The line in question is this, which is inside self.watch:
I managed to fix it--I think. But the only way I could was by reverting to an older version of umbracoforms.js. After I did that, the error went away.
The older version, by the way, was dependent on jQuery. Looks like the new version was an attempt to remove that dependency.
I have the same issue at UmbracoForms 8.6.0 and also on 8.6.1.
It seems that the code will run correct also if there is a datapicker in the form
I have a similar issue.
There is a fix/solution for this issue:
https://github.com/umbraco/Umbraco.Forms.Issues/issues/490
is working on a reply...