Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
item.setRegex ?
Andy Knipp
OK, so from the manual I can do this:
item.setRegex(/^[1-9]$/);
to define the validation regex in formapi.
But what if I want to define a variable and use it as the regex (I am setting an array of choices and will choose the correct one)
val="/^[1-9]$/";
item.setRegex(val);
does not work
Any ideas ?
Find more posts tagged with
Comments
There are no comments yet