Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Allowed Characters

 

 


concrete
User

Dec 6, 2011, 10:38 PM

Post #1 of 6 (1640 views)
Shortcut
Allowed Characters Can't Post

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?


gkornbluth
Veteran

Dec 7, 2011, 2:10 PM

Post #2 of 6 (1610 views)
Shortcut
Re: [concrete] Allowed Characters [In reply to] Can't Post

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!
http://www.thecmsbcookbook.com


concrete
User

Dec 7, 2011, 2:16 PM

Post #3 of 6 (1608 views)
Shortcut
Re: [gkornbluth] Allowed Characters [In reply to] Can't Post

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


gkornbluth
Veteran

Dec 7, 2011, 4:22 PM

Post #4 of 6 (1606 views)
Shortcut
Re: [concrete] Allowed Characters [In reply to] Can't Post

Hi Concrete,
Are you asking for a solution that will check to see if a valid email is manually entered by an admin while they are creating a record?

Interesting question but I don't know an answer.

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!
http://www.thecmsbcookbook.com


concrete
User

Dec 7, 2011, 5:05 PM

Post #5 of 6 (1602 views)
Shortcut
Re: [gkornbluth] Allowed Characters [In reply to] Can't Post

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.


Jason
Staff / Moderator


Dec 8, 2011, 7:34 AM

Post #6 of 6 (1593 views)
Shortcut
Re: [concrete] Allowed Characters [In reply to] Can't Post

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 - Programmer 
interactivetools.com

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