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

This is what you call a component builder. I was able to master using this in a very short time and the resulting component works like a charm. Not just a basic component builder but a fully working component builder with forms fields tables all ready to go. You can make the list and item views to display in the front and back end. Also there is a great forum just starting to evolve and I'm sure this will grow very rapidly when you all realise how good this tool is.
Kevin (JED)

         

Get Started