Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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)
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');
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:
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted