Allowed Characters

6 posts by 3 authors in: Forums > CMS Builder
Last Post: December 8, 2011   (RSS)

is it possible to put a regex code into the allow characters field.

Or is there another way to validate text field data. For example if i have a field called email, can i validate that its a valid email?

Re: [concrete] Allowed Characters

Hi Concrete,

There's an excellent thread on an email checking function here on the forum st:

http://www.interactivetools.com/forum/gforum.cgi?post=90497

Hope it gets you going.

best,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Allowed Characters

This is a great solution for front end code, but i was looking for a solution for the admin

Re: [gkornbluth] Allowed Characters

Yes, I'm referring to creating a record in the admin. I'm looking for a way to a validation to a text field. Not just for email, but also things like phone numbers, credit card numbers, Currency Validation.

Re: [concrete] Allowed Characters

By Jason - December 8, 2011

Hi,

Currently, there isn't a way to easily check for these things in CMS Builder. However, this could be accomplished through a plugin.

If you are familiar with building plugins, you can use the record_save_errorchecking hook. In this plugin you could then check any field for any type of validation you want and then output any errors you find.

If you'd like us to look into creating this for you, please email consulting@interactivetools.com and we can go over some options.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/