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

Although I found this tool some time ago I just started learning experimenting and building this first component on Monday and now on Thursday afternoon it's already online. Although I already had a working version done with another tool this is much easier to build and at the end you have the freedom to own your own component. Once you know how to use Cook you will boost your productivity as the learning curve is really moderate compared to many other tools.
Giori (Forum)

Get Started