Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

UserForms validate error + Upload field missing


Go to End


6 Posts   1597 Views

Avatar
quanto

Community Member, 91 Posts

8 January 2016 at 4:24am

Hi,

I just updated Silverstripe from 3.0.5 to 3.2.1. Everything works allright, but the userforms plugin. It has two (or maybe 3) errors:

* The frontend shows the error "Uncaught TypeError: Cannot read property 'settings' of undefined" on jquery.validate.min.js in my element inspector
* The datepicker doesn't get showed, i think because of this javascript error

* The File upload field is missing in the backend. I can not select this option when i'm adding a field.

Thanks in advance!

Avatar
helenclarko

Community Member, 166 Posts

8 January 2016 at 8:42am

Hi Quanto,

Which build of the Userforms module are you using?

-helenclarko

Avatar
quanto

Community Member, 91 Posts

8 January 2016 at 8:54am

The most recent master build

Avatar
helenclarko

Community Member, 166 Posts

8 January 2016 at 9:10am

Hi Quanto,

That may be where the issue is.
Often the latest Master builds are where Devs will do their modifications.

I would suggest trying the latest stable release (tag 3.1.0):
https://github.com/silverstripe/silverstripe-userforms/tree/3.1.0

-helenclarko

Avatar
quanto

Community Member, 91 Posts

8 January 2016 at 10:08pm

Hi helenclarko,

Thanks for your answer, however the problems remains the same. I tried branch 3.1.0 and 3.0.

Avatar
Alpha41

Community Member, 3 Posts

22 March 2017 at 5:19am

Duplicate post, but will add my fix/answer to this thread also in case of user searches for similar issues...

I'm guessing this issue for you quanto has either been resolved or you have moved on?

Nevertheless, for anyone landing on this question with the same issue, you will need to install the 'secureassets' module for the UploadField to become available within the CMS Form Builder. This is security precaution for all versions of Userforms from version 3.0.0 Final.

See below for reference:
https://www.silverstripe.org/download/security-releases/ss-2015-018/