Regex field on FieldControl validators

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

PeteM
Ebase User
Posts: 31
Joined: Thu Apr 21, 2016 1:04 pm

Regex field on FieldControl validators

#1

Postby PeteM » Mon May 09, 2016 9:35 am

Hi,

I'm writing server side javascript, and would like to be able to iterate the controls and apply Regex validation - are the Regex fields exposed anywhere?

Something like fields.MY_FIELD_NAME.fieldControl.validator.Regex() which would return the REGEX string would be what I would be aiming for?

Regards,

Pete
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Mon May 09, 2016 10:24 am

No sorry, the validators that you specify as part of a field's properties are not exposed via the programming API. But you can use Javascript to do regex field validation e.g. "string".search(expr). There are also Java classes that you can use but you shouldn't really need these.
0 x


Who is online

Users browsing this forum: No registered users and 21 guests