Skip to Content Skip to Menu

[SOLVED] Make phone number a tel link

  • jjcomp
  • jjcomp
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
8 years 7 months ago - 8 years 7 months ago #271255 by jjcomp
Is there a way to make a field (Phone Number) a tel link, so when the user clicks on it, it calls that number?

Many people are using sites on mobile devices these days, and I have added tel links to other sites, but I need my Joomla site to use a field as one.
Last edit: 8 years 7 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 68625
  • Thanks: 9109
  • Karma: 1434
8 years 7 months ago #271278 by krileon
Replied by krileon on topic Make phone number a tel link
Create a text field for the phone number then under Parameters > Layouts set the Profile Value Layout as follows.

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

Should cause the fields profile value to be a clickable tel link.


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: jjcomp

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

  • jjcomp
  • jjcomp
  • OFFLINE
  • Posts: 7
  • Thanks: 0
  • Karma: 0
8 years 7 months ago #271319 by jjcomp
Replied by jjcomp on topic Make phone number a tel link
AWESOME! Thank you so much.... It worked perfectly.

This would be a great built in field option in the future. I may also use this (changed a little) to do sms link. :woohoo:

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

Moderators: beatnantkrileon
Powered by Kunena Forum

Facebook Twitter LinkedIn