mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
parent
bb1c4d8043
commit
965d8d00b0
@ -469,6 +469,13 @@ class UserDefinedForm_Controller extends Page_Controller {
|
||||
$("#Form_Form").validate({
|
||||
ignore: [':hidden'],
|
||||
errorClass: "required",
|
||||
errorPlacement: function(error, element) {
|
||||
if(element.is(":radio")) {
|
||||
error.insertAfter(element.closest("ul"));
|
||||
} else {
|
||||
error.insertAfter(element);
|
||||
}
|
||||
},
|
||||
messages:
|
||||
$messages
|
||||
,
|
||||
|
Loading…
Reference in New Issue
Block a user