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

  Merci d'avoir présenté ce service web générateur de composant joomla. L'interface est très conviviale on a le plaisir du drag&drop et c'est assez rare pour être signalé. Je souhaite que ce projet connaisse un fort succès votre réalisation est méritante.
Yann Gomiero (AFUJ - France)

Get Started