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.122 seconds
  I still don't believe he can really be human to do all this ! From all of the forums that I've ever participated in this is certainly the one that most encapsulates the feeling of being truly open source where everyone's opinions and contributions can and will shape the development of the service! It's truly awesome! Hope you enjoy cooking and look forward to reading and contributing to any of the editorial work that you proposed too!! Thanks
Gez (audibleid - JED)

Get Started