Gossamer Forum
Home : Products : DBMan : Discussions :

numeric field validation

Quote Reply
numeric field validation
i have a field set up as type=numer but dbman lets me enter alpha characters in the field. how do i get it to validate that only numbers are entered?

Quote Reply
Re: numeric field validation In reply to
In the valid expr field of the database configuration, enter ^\d+$

eg: Number => [1, 'numer', 5, 4, 1, '', '^\d+$'],

- Mark


Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: numeric field validation In reply to
thank you! that worked