cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
4677members
1472posts
InvocaKnowledge
Community Manager
Community Manager

Symptoms

A phone number in the aria-label and title remains the same instead of being replaced with the Invoca number.

<a href="tel:+1888.123.4567" aria-label="1.888.111.2222" title="call 888.111.2222">
1.888.123.4567
</a>
 

Applies To

Number swap, Invoca Tag

Resolution

Swapping the number in the custom attribute, such as aria-label or title will require a custom code update. Please contact your CSM to engage Invoca Technical Services for assistance with this solution.

Cause

The Invoca Tag targets only the "href" attribute of the <a> tag and its inner text content (i.e., text displaying a phone number) to perform number swapping.

It does not check other custom attributes, such as aria-label, title, or any other attribute, as these are not consistently used for phone numbers.

 

Need more help?

Don't see what you are looking for? You can ask the Community or contact support.

Comments
CassH
Contributor Level 1

I am currently dealing with this situation. If you are Javascript savvy, you can add custom code to check elements for title attribute and swap the number yourself. Unfortunately, I haven't found any documentation around the best way to implement it, but they do have documentation on the methods you can override in the custom code section like OnComplete. I do wish the custom code documentation was more explicit about how to access element information. 😞