Did Unbounce ever fix this? There is a topic on this already that is dead so I thought I’d renew it here. Basically when you use DTR, any dashes are rendered as spaces - which sucks for phone numbers 😦
The solution provided in the post by @leah.ann didn’t work for me (but if you read this Leah, you’re a whiz! It’s likely me not understanding something).
<script>
function getURLParameter(name) {
return decodeURIComponent((new RegExp('R?|&]' + name + '=' + '('^&;]+?)(&|#|;|$)').exec(location.search)||e,""])|1].replace(/\+/g, '%20'))||null
}
var num = getURLParameter('num');
if (num) {
lp.jQuery("#lp-pom-button-46 .label").text(num);
};
</script>
Any and all help would be appreciated!