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.

All other Modules /

Discuss all other Modules here.

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

UserForms - missing JS file


Reply


5 Posts   606 Views

Avatar
dymale

Community Member, 4 Posts

13 February 2013 at 3:31pm

UserForms is very good module, thank you :)

However...
If you run custom form created by UserForms module the error for Javascript “$("#Form_Form").validate is not a function” takes a place.
Of course, you can see it at FF with Firebug.

So, the file "framework/thirdparty/jquery-validate/jquery.validate.js" is missing. If add it, there are no problems at all.

Bug?

Avatar
Willr

Forum Moderator, 5513 Posts

14 February 2013 at 9:13pm

That file is added via a git submodule. If you download the module via composer it should handle installing that for you, otherwise run git submodule update. This is in the README file.

Avatar
hp777

Community Member, 12 Posts

27 February 2013 at 4:02pm

Anyway to get those js files (validate & Placeholders) manually? Can't use git

Avatar
Willr

Forum Moderator, 5513 Posts

27 February 2013 at 7:40pm

You can download them from https://github.com/jamesallardice/Placeholders.js and https://github.com/jzaefferer/jquery-validation. They need to go inside the thirdparty/ folder like https://github.com/silverstripe/silverstripe-userforms/tree/master/thirdparty.

Avatar
hp777

Community Member, 12 Posts

28 February 2013 at 3:54am

Thanks for all the great work!