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 :: validation bug


Go to End


2 Posts   1905 Views

Avatar
Junglefish

Community Member, 109 Posts

22 September 2009 at 8:50pm

Hi all

I'm running a standard installation of SilverStripe CMS - 2.3.3 and I'm creating a form using the UserForms module.

I just set up a fairly basic user form. I set a couple of fields to be mandatory and I'm getting script errors on page load.

Firebug says:

$("#Form_Form").validate is not a function

and points to this line of code in the source:

, EditableDropdown19:{
required:1
}

If I then make that field not mandatory and run the page again, Firebug says the same and points me at the source code for the previous formfield:

, EditableTextField18:{
maxlength:"1000"
}

and so on.

Anyone seen this before or know what's happening?

jf/

Avatar
Junglefish

Community Member, 109 Posts

1 October 2009 at 12:50am

For anyone interested in this issue, please see: http://www.silverstripe.org/general-questions/show/269138