Skip to Content Skip to Menu

[#5604] Web Address Validation

9 years 3 weeks ago - 9 years 1 week ago #272770 by cbnewbie01
[#5604] Web Address Validation was created by cbnewbie01
Dear support team,

I'd like to require user input to conform to [xx].linkedin.com/in/[anyvalue]. The default parameters don't seem to support that and I cannot find any guidance on this forum either.

Your guidance on how I could accomplish this would be greatly appreciated.

Best!

P.S. I also understand from another post about 5 months ago that all urls are defaulted to http but an option between http and https may be provided in future releases. Would you have an update for this? Thanks again!
Last edit: 9 years 1 week ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
9 years 3 weeks ago #272788 by krileon
Replied by krileon on topic Web Address Validation
Currently the web address field only supports HTTP. You can not toggle back and forth and it'll strip out whatever scheme the URL is currently providing. For what you're wanting you may want to use a text field with a layout that'll turn it into a link. Example Profile Value Layout as follows.

[cb:if FIELD_NAME!=""]<a href="[FIELD_NAME]">[FIELD_NAME]</a>[/cb:if]

If you still want to use the web address field, but only validate that URL you can use the below validation on your field.

Authorized input: Custom PERL regular expression
Perl Regular Expression: ^(http|https)://(www\.|)linkedin\.com/in/.+$


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.

9 years 3 weeks ago #272811 by cbnewbie01
Replied by cbnewbie01 on topic Web Address Validation
Hi, Kyle,

Thank you for the response!

I tried the validation (^(http|https)://(www\.|)linkedin\.com/in/.+$) you suggested but CB still allows any url to be entered. What do you think might be the issue?

Best regards.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
9 years 2 weeks ago #272869 by krileon
Replied by krileon on topic Web Address Validation
Try the below exactly then see if it works fine.

Code:
%^(http|https)://(www\.|)linkedin\.com/in/.+$%


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.

9 years 2 weeks ago #272897 by cbnewbie01
Replied by cbnewbie01 on topic Web Address Validation
Hi, Kyle,

Unfortunately, this is still not working. Could you please help look into this again?

Many thanks!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48536
  • Thanks: 8290
  • Karma: 1445
9 years 2 weeks ago #272927 by krileon
Replied by krileon on topic Web Address Validation
Are you trying it on a Text field or a Web Address field? If Web Address field try a text field. Please ensure you've also updated to latest CB 2.0.12 release.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum