429
Views
5
Comments
Solved
How to apply a hyperlink 
Question

How to apply a hyperlink to a phone number and make a call (in a mobile webpage, of course). 

Thanks!


2018-06-06 10-35-56
Craig Salmon
Solution

You could use an expression like so:

"<a href=""tel:" + GetContacts.List.Current.Contact.Telephone + """>" + GetContacts.List.Current.Contact.Description + "</a>"


Make sure to set the 'Escape Content' property to 'No'

UserImage.jpg
Sandeep Kapil

Craig Salmon wrote:

You could use an expression like so:

"<a href=""tel:" + GetContacts.List.Current.Contact.Telephone + """>" + GetContacts.List.Current.Contact.Description + "</a>"


Make sure to set the 'Escape Content' property to 'No'

How can I use this HTML as outsystems always shows me the property windows and i can't able to use my customise scripts, any advice?


2018-06-06 10-35-56
Craig Salmon
<a href="tel:+441234567890">Call Us</a>

That should do it!

2016-07-12 16-07-47
Jorge Almeida
<a href="tel:+441234567890">Call Us</a>

and if we need to use an attribute to insert the mobile number?



2018-06-06 10-35-56
Craig Salmon
Solution

You could use an expression like so:

"<a href=""tel:" + GetContacts.List.Current.Contact.Telephone + """>" + GetContacts.List.Current.Contact.Description + "</a>"


Make sure to set the 'Escape Content' property to 'No'

UserImage.jpg
Sandeep Kapil

Craig Salmon wrote:

You could use an expression like so:

"<a href=""tel:" + GetContacts.List.Current.Contact.Telephone + """>" + GetContacts.List.Current.Contact.Description + "</a>"


Make sure to set the 'Escape Content' property to 'No'

How can I use this HTML as outsystems always shows me the property windows and i can't able to use my customise scripts, any advice?


2016-07-12 16-07-47
Jorge Almeida

In p10 it is not wise to injectHTML in expressions. i am trying to use an hyperlink with an external url, but it still delivers the domain and not the url i really want! 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.