What happens there when saving a page?
(WYSIWYG - field)
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
Ok. Thank you so far ...
Gonna try that...
You're welcome and please let me know if you have any follow-up questions.
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' );
My issue is resolved now. Thank you!