Post

3 followers Follow
0
Avatar

Calculation field with email link and subject

So I want to create a email field based on a linked contact and put in the subject as a variable. When you click it should open Outlook with the subject prefilled with the Podio variable. Piece of cake??

Patriek Albers

Please sign in to leave a comment.

6 comments

1
Avatar

Hey Patriek,

you need to created a mailto-link like this one

"[send email](mailto:?to=" + @email field + "&subject=" + @subject field + ")"

A click on the displayed text "send email" opens you're preferred email client - but which one you want to be opened you maybe need to define in your Operating System or in your browser settings.
The above code works for Gmail, didn't test it for Outlook (I don't use Outlook :) ) 

Rainer 


Rainer Grabowski 1 vote
Comment actions Permalink
0
Avatar

HI Rainer, 

 

Thanks! Only thing is that the @email field is translated to [object][object]. I know this can be fixed. 

Do  you know how??

 

Pat

Patriek Albers 0 votes
Comment actions Permalink
0
Avatar

Hey Rainer,

Can you also make this work on mobile so it also works within the app. 

Thanks. 

Patriek Albers 0 votes
Comment actions Permalink
0
Avatar

Hello Patriek,

for the email field:
@email field.map(function (obj) { return obj.value}).join()

for mobile use: Yes (tested with Android and Gmail App)

Rainer

Rainer Grabowski 0 votes
Comment actions Permalink
0
Avatar

I tried the:

.map(function (obj) { return obj.value}).join()

 

To return the email address for a customer in a field but I get this result:

Invalid value "sss@sss.ss" (string): must be number

Lara Hronn Petursdottir 0 votes
Comment actions Permalink
0
Avatar

Hi Lara,

if you can save the template and if it shows the correct result in the item view forget the error notification.
If not, keep your calculation but add as last line "x" (with quotation marks). Save the template, open it again, remove "x".

Rainer

Rainer Grabowski 0 votes
Comment actions Permalink