Post

2 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.

4 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
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
0
Avatar

Hey Rainer,

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

Thanks. 

Patriek Albers 0 votes
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