Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Field validation options

  • linskill
  • linskill
  • OFFLINE
  • Posts: 21
  • Thanks: 2
  • Karma: 0
  • Add-ons
8 years 7 months ago #278830 by linskill
Field validation options was created by linskill
First of all. Congratulations on an excellent program.
I have been trying to get my head around the field input validations. I use the Users profile data to auto-populate a few forms. Is there any way I can restrict the text entered to Uppercase only in certain fields.
Cheers
Mark

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 7 months ago - 8 years 7 months ago #278847 by krileon
Replied by krileon on topic Field validation options
Yes, edit your field within CB > Field Management and under Parameters > Validation you can adjust the fields validation as needed. Text fields support REGEXP validation, which can be used to limit the characters to uppercase as needed. Example as follows.

Authorized input: Custom PERL regular expression
Perl Regular Expression: /^[A-Z_\W\d\s]*$/

This should match uppercase, numbers, and non-word characters. If you strictly want uppercase letters only then the below will work.

Perl Regular Expression: /^[A-Z]*$/

See your CB 2.0 Primer Book for further validation parameter usage information. For REGEXP information see the below site.

www.regular-expressions.info/


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 8 years 7 months ago by krileon.
The following user(s) said Thank You: linskill

Please Log in or Create an account to join the conversation.

  • linskill
  • linskill
  • OFFLINE
  • Posts: 21
  • Thanks: 2
  • Karma: 0
  • Add-ons
8 years 7 months ago - 8 years 7 months ago #278897 by linskill
Replied by linskill on topic Field validation options
Thank for that, it worked great. Although I ended up using the auto actions outlined elsewhere in this excellent forum. Could you point me in the right direction to any documents for the auto actions plugin as I cant seem to find any - I am trying to find out if you can use Auto Actions to convert text to title case.
Cheers
Mark
Last edit: 8 years 7 months ago by linskill.

Please Log in or Create an account to join the conversation.

  • linskill
  • linskill
  • OFFLINE
  • Posts: 21
  • Thanks: 2
  • Karma: 0
  • Add-ons
8 years 7 months ago #278904 by linskill
Replied by linskill on topic Field validation options
Forget my last post, I have found what I need. It appears you have to convert the text to lowercase first and then convert it to "uppercasefirst"
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 7 months ago #278962 by krileon
Replied by krileon on topic Field validation options
Regarding your documentation question Nick is currently working on a primer book for CB Auto Actions, but we do have the following videos that describes some usecases.

www.youtube.com/playlist?list=PLp0puRITgC7McQcw0Sli1qfSUQGwmflzi


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: linskill

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum