How can we help?

How to dial a phone number within an XControls application?

Follow

To make a phone number an hypertext link to dial a call, you can use an <a href> tag such as: <a href="tel://999-9999">999-9999</a>.

When using XControls, you can use the code below where Mobile represents the name of the field containing the phone number.

<xp:link escape="true" text="#{document1.Mobile}" id="phone">
<xp:this.value><![CDATA[#{javascript:"tel://" + document1.getItemValueString('Mobile')}]]>
</xp:this.value>
</xp:link>

Have more questions? Submit a request

Comments