Skip Navigation

[Resolved] FORMS: tel link is purged – href="tel:+4912345" is changed to href="+4912345"

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 6 replies, has 2 voices.

Last updated by a.R 1 year, 11 months ago.

Assisted by: Waqar.

Author
Posts
#2500725

a.R

What happens there when saving a page?
(WYSIWYG - field)

#2501231

Hi,

Thank you for contacting us and I'd be happy to assist.

While testing on my website, I was able to reproduce this behavior too. And it is not just limited to the WYSIWYG field but is also the same for the single line, multiple lines, post content, and post excerpt type fields, in the form.

I've shared these findings with the concerned team and will keep you updated through this ticket.

For now, a workaround can be to use a separate 'phone' type custom field, to store phone number(s) and then use its value to generate the HTML links with the phone.
( ref: https://toolset.com/documentation/customizing-sites-using-php/functions/#phone )

regards,
Waqar

#2501995

a.R

Ok. Thank you so far ...
Gonna try that...

#2502211

You're welcome and please let me know if you have any follow-up questions.

#2515501

a.R

Anything new about that?

#2516123

Thanks for checking in.

I'm happy to update you that a fix for this is expected to be covered in the future release of the Toolset Forms plugin.

Once this release is out, I'll inform you through this ticket, and for now, here is how you can apply a quick fix.

At line# 798, in the file /wp-content/plugins/cred-frontend-editor/library/toolset/cred/embedded/models/Abstract.php, you'll see this code:


$allowed_protocols = array( 'http', 'https', 'mailto' );

You can update that line, to include the 'tel' protocol too:


$allowed_protocols = array( 'http', 'https', 'mailto', 'tel' );

#2519577

a.R

My issue is resolved now. Thank you!