Welcome, Guest
Username: Password: Remember me

TOPIC: Incorrect Value - numeric

Incorrect Value - numeric 29 Oct 2012 23:37 #4838

  • jcbenton
  • jcbenton's Avatar
  • Offline
  • Premium Member
  • Posts: 125
  • Thank you received: 9
  • Karma: 3
I read through some other posts regarding this problem. I even went so far as to totally remove the field, add it back to the table, and then add it back to all my forms and rebuild. But I keep getting this damn error.



I even tried using my own regex: ^[1-5]$

That fails too.


Ideas?
--
Jerry Benton
Last Edit: 29 Oct 2012 23:41 by jcbenton.
The administrator has disabled public write access.

Re: Incorrect Value - numeric 29 Oct 2012 23:43 #4839

  • jcbenton
  • jcbenton's Avatar
  • Offline
  • Premium Member
  • Posts: 125
  • Thank you received: 9
  • Karma: 3
I rebuilt using the old Cook and the problem is gone. Will try to switch back and see what happens.
--
Jerry Benton
The administrator has disabled public write access.

Re: Incorrect Value - numeric 29 Oct 2012 23:45 #4840

  • jcbenton
  • jcbenton's Avatar
  • Offline
  • Premium Member
  • Posts: 125
  • Thank you received: 9
  • Karma: 3
Damn it. I switch back to the 2.0 engine and it breaks again.
--
Jerry Benton
The administrator has disabled public write access.

Re: Incorrect Value - numeric 01 Nov 2012 11:18 #4884

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
^[1-5]$
This allows only : 1, 2, 3, 4, 5

Try to test your regex first independently of Cook.

The correct regex is :
^(\d|-)?(\d|,)*\.?\d*$

But in JS, the \d are replaced by [0-9]

Anyways, it should work.
JS error ?

MooTools ?
Coding is now a piece of cake
Last Edit: 01 Nov 2012 11:20 by admin.
The administrator has disabled public write access.

Re: Incorrect Value - numeric 01 Nov 2012 11:24 #4886

  • jcbenton
  • jcbenton's Avatar
  • Offline
  • Premium Member
  • Posts: 125
  • Thank you received: 9
  • Karma: 3
JS error. And yes, I was checking for 1 2 3 4 5 :)
--
Jerry Benton
The administrator has disabled public write access.
Time to create page: 0.068 seconds

Get Started