Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

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

Please Log in or Create an account to join the conversation.

Last edit: by jcbenton.

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

I rebuilt using the old Cook and the problem is gone. Will try to switch back and see what happens.
--
Jerry Benton

Please Log in or Create an account to join the conversation.

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

Damn it. I switch back to the 2.0 engine and it breaks again.
--
Jerry Benton

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986

^[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

Please Log in or Create an account to join the conversation.

Last edit: by admin.

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

JS error. And yes, I was checking for 1 2 3 4 5 :)
--
Jerry Benton

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.245 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started