Trigger a phone call when clicking a link in DJ-Classifieds on mobile phone

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:

click-to-reveal-number DJ-Classifieds

that will show in full once touched/clicked like this:

revealed-number DJ-Classifieds custom field

and then once clicked/touched again, the instant phone call can be made:

call-number dj-classifieds custom field

How to configure the fields

Open the DJ-Classifieds component.

telephone tutorial1

Go to "Fields" and create a "new" field.

telephone tutorial2

The field's name 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 rel=" 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.

telephone tutorial3

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.

 

telephone tutorial4 

Remember that the telephone number should be defined in the user's profile. 

As you can see now, the user's profile on the front page has a visible phone number. 

telephone tutorial5

Click the "Show" button. 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.

telephone tutorial6

Let's create a custom field for contact details in the ad's view.

telephone tutorial7

You can use the "Show value on click" option here too. Could you scroll down and enable it? Save your configuration.

telephone tutorial4

Now you can add a contact number in ad details. The final effect is visible below.

telephone tutorial8

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.

telephone tutorial9 


      • Related Articles

      • Auctions in DJ-Classifieds

        DJ-Classifieds component allows hosting auctions on your Joomla powered website! Users can run their own auctions and sell items to your site visitors! To make it everything more comfortable, we will show you how to manage the auctions, place a bid ...
      • Private Messages DJ-Classifieds App

        In this tutorial, we'll show you how to set up DJ-Classifieds to cooperate with UDDEIM component. After applying these operations, users will send messages to each other via the "contact this advertiser" form directly in the advertisement and then ...
      • How to display Whatsapp contact in the single advert view?

        Whatsapp field in the Advert view DJ-Classifieds gives the possibility to display Whatsapp contacts link in the advert details. Once configured, the field will be displayed in the "ad new advert" feature.  The user adding advert can define the mobile ...
      • How to configure DJ-Classifieds

        DJ-Classifieds installation  It would help if you were logged-in as Joomla administrator. Open the " Extension Manager ". To Upload & Install DJ-Classifieds component, click " Choose file " and choose the extension package from your disk. When the ...
      • Coupons DJ-Classifieds App

        The Coupons App basically ads the discount coupons functionality to DJ-Classifieds. Below you’ll find steps to install and enable this functionality as well as a description of all possible options you can get with it. Installation Just install the ...