Open Codesesh opened 7 years ago
The reason for it working fine in normal mode is because invisible requires more work on the JS end of things than normal does. Are you loading a custom version of jQuery validate (i.e. the one not included in the core)? Is your form build through userforms? or custom?
I think he has a custom one as I have,
I just fixed that by clearing default requirements, hope it helps
Requirements::clear(THIRDPARTY_DIR . "/jquery/jquery.js");
Requirements::clear("userforms/thirdparty/jquery-validate/jquery.validate.min.js");
I think there may of been a custom version of jQuery validate loaded.
I have just tried 0.4.0 of this module with SS 3.6.1 on a static contact form on another website and it is working fine.
When using version 0.4.0 of this module & using the invisible mode we get:
https://www.dropbox.com/s/2f4qbfjjd2298f8/Screenshot%202017-06-07%2010.29.22.png?dl=0
https://www.dropbox.com/s/zohx305s4vowabz/Screenshot%202017-06-07%2010.29.47.png?dl=0
default_size: "invisible" - Doesn't work, throws error as above. default_size: "normal" - Works
Version 0.3.2 is working fine though.
I am using Silverstripe CMS/Framework 3.3.1