Skip to main content
1-Visitor
June 21, 2017
Solved

How can i add a Validation Expression in an editable Grid?

  • June 21, 2017
  • 4 replies
  • 3974 views

Hi, I'm trying to add a verification expression in an editable grid, but it seems that this is not working very well since it is always showing an error even though my entry respects the regular expression that i defined.

Someone could help?

Thanks!

Best answer by mazri

Oh actually i managed to find the solution , thanks to your answer i tryied this : /^[A-Z][a-zA-Z0-9_]{0,30}$/.test([Name]) and it works

before i was trying this: /^[A-Z][a-zA-Z0-9_]{0,30}$/.test(Name) but it doesn't work.

Thanks !

4 replies

22-Sapphire I
June 21, 2017

What does your regular expression look like and how are you binding your values to the widget?

mazri1-VisitorAuthor
1-Visitor
June 21, 2017

                                   

22-Sapphire I
June 21, 2017

I don't think it will be able to use that.

It needs a javascript comparison statement .. like [fieldname] > 30 not even sure if it can do isString or anything like that.