Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Date Field Custom Rule Problem

Date Field Custom Rule Problem 26 Aug 2013 17:49 #10912

  • dyoungers
  • dyoungers's Avatar
  • Offline
  • Premium Member
  • Posts: 123
  • Thank you received: 16
  • Karma: 0
When I have a date field on a form I keep getting an error that says
jqv:custom rule not found - time_8980
The 4 digits after time_ varies based on the form but it is showing up on multiple forms

Thanks!
Dave

PS. I have a test project called New project with one table called New table and one front end form called New table item that demonstrates the problem
The administrator has disabled public write access.

Date Field Custom Rule Problem 05 Sep 2013 13:43 #11006

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
I cannot reproduce the problem.

Validator is well instancied.
4 digits are random because they are using the same class file in php but instancied in a unique name depending of behaviors of the validation to process.
This has been introduced by cook and not joomla native because Joomla is not handling validations correctly to my point of view.
I have to check better latest versions (3.1...) maybe I am wrong.

Well, for your problem, can you see the js code generated ?
what can be the problem ?
Coding is now a piece of cake
The administrator has disabled public write access.

Date Field Custom Rule Problem 05 Sep 2013 14:17 #11008

  • dyoungers
  • dyoungers's Avatar
  • Offline
  • Premium Member
  • Posts: 123
  • Thank you received: 16
  • Karma: 0
still getting the error in my test project (just rebuilt) using 2.5 Sandbox

Project: New Project
Table: New Table
View: New Table Item

date input field looks like this:
<input type="text" id="jform_my_date" name="jform[my_date]" class="input-small validate[custom[time_5616]]" value="" size="32"/>

js for validator looks like this:
jQuery.validationEngineLanguage.allRules.time_5616 = {
"regex" : new RegExp("^[0-9]{2}-[0-9]{2}-[1-9][0-9]{3}$", 'i'),
"alertText" : '<span class="msg-prefix">• </span>Incorrect format. Expected : m-d-Y'
}

have no clue why it can't find it?

Thanks!
Dave
The administrator has disabled public write access.

Date Field Custom Rule Problem 17 May 2015 10:20 #13017

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
This issue is now fixed since 2.7
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.087 seconds

Get Started