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


Reply

2 Posts   1269 Views

Avatar
Junglefish

22 September 2009 at 8:50pm Community Member, 104 Posts

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

1 October 2009 at 12:50am Community Member, 104 Posts

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