Mobile: clickable phone number and email address

Mobile: clickable phone number and email address

  

Hi,

Outsystems mobile:
It sounds easy but I'm breaking my head over how to make phone numbers and/or email clickable so they navigate to the native phone app (call person) or email app (send mail).

I've tried changing the attribute type from text to phone and email but that does not do much.

Any help would be welcome.

KR,

Eelco.

Hi,

For emails, drop a Link widget in your screen and set its "On Click" event to "RedirectToURL". Then, in the "URL" property, create an expression like this:

"mailto:" + GetEntities.List.Current.Entity.Email

For phone numbers, the process is exactly the same. The only difference is that, instead of "mailto:", your expression must start with "tel:".

Aurelio Santos wrote:

Hi,

For emails, drop a Link widget in your screen and set its "On Click" event to "RedirectToURL". Then, in the "URL" property, create an expression like this:

"mailto:" + GetEntities.List.Current.Entity.Email

For phone numbers, the process is exactly the same. The only difference is that, instead of "mailto:", your expression must start with "tel:".

Thanks that did the trick, I should have tried the mailto feature..