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

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started