Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Required not enforced on AJAX Dropdown 22 Dec 2015 13:22 #13751

  • MorganL
  • MorganL's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
This is affecting a project I currently have exported and running. If I run the project in JCook sandbox it works fine.

I have a dropdown field which is showing the asterix for being a required field, and in the XML file the required settings are there but it is not being enforced.

What files do I need to debug to fix a required not working for AJAX Select box.

Other required fields in the form are working fine (such as a date field)
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla

Please Log in or Create an account to join the conversation.

Required not enforced on AJAX Dropdown 04 Jan 2016 11:29 #13759

Hi,

Maybe related to my problem: www.j-cook.pro/index.php/forum/19-new-ti...elect-not-validating

The problem might not be the AJAX, but the dropdown. It uses Jquery chosen.
In the end I post a piece of code to fix it in a specific form, but you can fork the headerdeclaration to fix it for all forms.

There is a little error in the code, the correct code is:
(function($){
	$(document).ready(function () {
		$("#adminForm").validationEngine('attach',{prettySelect:true,useSuffix:"_chzn"});
	});
})(jQuery)

Please Log in or Create an account to join the conversation.

Required not enforced on AJAX Dropdown 09 May 2016 10:48 #13935

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
This ticket has been fixed and can be closed now.
The new trick also works with AJAX.

Can you confirm me that Morgan ?
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.056 seconds

Hi first of all I'd like to say that J-Cook is a great tool - the best component builder I tried so far...
Rymedia - Jonas 

Get Started