Skip to Content Skip to Menu

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

[#5604] Web Address Validation

8 years 11 months ago #273309 by cbnewbie01
Replied by cbnewbie01 on topic Web Address Validation
Hi, Kyle,

I already have the latest version of CB installed and followed your instructions for Text Field, html substitution, and validation but it is still not functioning as it should. CB is accepting input that does not conform to the parameter set out and the value is still shown as text rather than url.

* Placeholder Value: [cb:if cb_linkedin_profile!=""]<a href="cb_linkedin_profile">cb_linkedin_profile</a>[/cb:if]

* Validation
--> Authorized Input: Custom PERL regular expression
--> PERL Regular Expression: %^(http|https)://(www\.|)linkedin\.com/in/.+$%

Could you please help look into how this can be rectified?

Thanks!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
8 years 11 months ago #273318 by krileon
Replied by krileon on topic Web Address Validation
What value is bypassing the validation? Anything specific? Please provide examples.


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.

8 years 11 months ago #273340 by cbnewbie01
Replied by cbnewbie01 on topic Web Address Validation
Hi, Kyle,

Thought I was clear enough. As mentioned at the beginning of the thread, my aim is to mandate input to conform to the convention of [xx].linkedin.com/in/[anyvalue]. Despite the settings indicated above, I can enter any value into the field and it would be accepted by CB.

Thanks again!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
8 years 11 months ago #273370 by krileon
Replied by krileon on topic Web Address Validation
I don't see how that's possible if the regex validation is properly specified. Please PM backend super administrator login credentials and will take a look.


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.

8 years 11 months ago #273382 by cbnewbie01
Replied by cbnewbie01 on topic Web Address Validation
Hi, Kyle, this has been done. Thanks!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
8 years 11 months ago #273394 by krileon
Replied by krileon on topic Web Address Validation
Ok, looks like it's a bug with the expression being validated before it can be used. The validation is too strict and doesn't like custom delimiters. I've added a bug ticket regarding this.

forge.joomlapolis.com/issues/5604

For now the below will work and have adjusted it for you. I've also fixed your layout usage so it outputs properly.

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.
The following user(s) said Thank You: nant

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

Moderators: beatnantkrileon
Powered by Kunena Forum