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

This is what you call a component builder. I was able to master using this in a very short time and the resulting component works like a charm. Not just a basic component builder but a fully working component builder with forms fields tables all ready to go. You can make the list and item views to display in the front and back end. Also there is a great forum just starting to evolve and I'm sure this will grow very rapidly when you all realise how good this tool is.
Kevin (JED)

         

Get Started