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.061 seconds

I jumped and started to work on a demo component... but 2 days later this demo component became the real component. I just showed today the end result to my customer and he turned to me and said... "this is more than I expected"... All of this is because Cook did cut about 70% of my work and provided me more ways to improve the usability of the component. The end result was 17 tables all related between than to generate a full dashboard for the travel agents. Thanks for Cook developers for such great tool. This component would not be possible to be done at short time with all the features in it
Griiettner (Forum)  

Get Started