Skip to Content Skip to Menu

create a unique field at registration

13 years 9 months ago #150735 by anthonytrose
create a unique field at registration was created by anthonytrose
Hi,

I'm trying to limit who can register on my site and in order to do this i thought of email out the members of our society an email asking them to register and also supplying them with a unique word which they must enter in a field supplied at registration. Is it possible to create a field which will only accept one specific word?

I did setup a text field were the word entered had to be more the 6 characters and must include UPPERCASE, lowercase, numbers, and a special character, but this could quite easily be broken. Is there any other way?

Thank you for your assistance.
Anthony

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48419
  • Thanks: 8274
  • Karma: 1443
13 years 9 months ago #150793 by krileon
Replied by krileon on topic Re: create a unique field at registration

Is it possible to create a field which will only accept one specific word?

Yes, create a text field and change the validation to Regular PERL Expression and set the regex to something like \WORD_HERE\. This method uses regex to validate if inexperienced with regex, please search before constructing.


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.

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

13 years 8 months ago #153115 by studentafrica
Replied by studentafrica on topic Re: create a unique field at registration

krileon wrote:

Is it possible to create a field which will only accept one specific word?

Yes, create a text field and change the validation to Regular PERL Expression and set the regex to something like \WORD_HERE\. This method uses regex to validate if inexperienced with regex, please search before constructing.


I have a text field that will compare the value entered by the user with database table records. i want to use ajax to validate and return a message to the user. if the entered value is correct, it should notify the user by placing a green correct or valid. if the value is not correct then it should say invalid. I need help to modify this cb text field.

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

Moderators: beatnantkrileon
Powered by Kunena Forum