Sign in

How can we help?

How do I replace phone number in links and forms?

Topic: , Updated:

Apart from replacing the numbers visible on the page, the script can also replace tel-URLs in forms and links.

In the example below the tel-URL will be replaced with the same number as the visible number.

<a class="fs-dynamic-number" href="tel:0850925010">08-50 92 50 10</a>

Please note that if the number in the tel-URL differ from the visible number, none of them will be replaced.

In the example below, the tel-URL in the action attribute of the form will be replaced with a tracking number in the same way as a visible number.

<form class="fs-dynamic-number" action="tel:0850925010" method="link">
  <button>Call us</button>
Was this article helpful?
0 out of 0 found this helpful


Not the answer to your question?

Powered by Zendesk