I have a demo table that I would like to add validation with regular expression to check that the text entered into a text-field does not contain spaces. I can see that table's field Edit Tag, it has 2 options for adding client side or server side regex. I am just not sure how on how to implement the regex code I have. I have made sure that the client side and server side functionality is activated on the General Option settings.
This is the code I currently wish to use in the client side:
/\S*/g
This code matches all strings without white spaces.
The confusion is that do I have to write it the usual javascript way? As in:
var regX = /\S*/g;
I have tried both ways though, and I still can't get it to do the validation right. It throws an error when I try to add a text in the field.
ERROR:
Invalid Key Value
Please, any ideas on how to make this work?