Trigger a phone call when clicking a link in DJ-Classifieds on mobile phone
Create a clickable phone contact field in DJ-Classifieds.
Users can make a mobile phone call clicking on the link with telephone number right from the advert!
After applying this tutorial, you'll be able to make the telephone number hidden, like this:
![dj-classifieds clickable phone contact field](/templates/yootheme/cache/25/triggercall1-2562e8de.png)
that will show in full once touched/clicked like this:
![dj-classifieds phone contact field](/templates/yootheme/cache/7a/triggercall2-7a779dbd.png)
and then once clicked/touched again, the instant phone call can be made:
![instant phone call dj-classifieds](/templates/yootheme/cache/96/triggercall3-96edcefd.png)
How to configure the fields
Open the DJ-Classifieds component, then create new custom field.
The field's scheme needs to contain the "tel" phrase. For example: "telephone" or "tel". This concerns only the field's name, the label name is unrestricted.
The "tel" phrase cause that the tag "tel: XXXXXX" is added to the field. XXX is a field value.
Let's create a new "Field" called "Telephone number". Set the name and choose where to use it. We will create a custom field for a user profile.
![dj-classifieds create new custom field](/templates/yootheme/cache/9d/triggercall4-9d8ba1f2.png)
Then we set field's scheme to "tel:", so that
You can also hide the phone number - it will be visible to users that will click the "Show" button. We have published another tutorial to learn how to use the "Show on click" feature.
Scroll down and set the "Show value on click" option for "Yes".
Now save your configuration.
![dj-classifieds show value on click settings](/templates/yootheme/cache/da/triggercall5-dab82795.png)
Now you can add a contact number in ad details. The final effect is visible below.
![dj-classifieds add a contact number in add](/templates/yootheme/cache/93/triggercall6-93eddd24.png)
Click the "Show" button, and you will see the full telephone number.
Now you can use the link with phone number. Click the link with the number and make a call.
![dj-classifieds link with phone number in ad](/templates/yootheme/cache/63/triggercall7-63cd4079.png)