If Gmail Name Extraction Doesn't Work?

Hello!

I'm trying to use the Gmail command pack to insert the name of the person I am responding to. If it's unable to gather the recipients first name, I would like the snippet to put a blank text box there instead so that I can manual insert it.

Could someone please help me with this? Below is my attempt, but I'm not sure why it's not working.

Hi {gmail-firstname: type=single; default={formtext: name=Manual Name Entry}},

This can be done with an IF statement. First we turn the Gmail First name function into a variable called "gmail_auto_first_name" which will allow us to use it in an IF statement. We contain that into a note for housekeeping. Then we use the the IF statement to check if the variable is blank. If it isn't, we have the first name inserted. If it is blank, we then have it default to the manual name entry box instead.

{note}{gmail_auto_first_name={gmail-firstname: type=single}}{endnote}Hi {if: gmail_auto_first_name = ""}{formtext: name=Manual Name Entry}{else}{=gmail_auto_first_name}{endif},

2 Likes

Wonderful, thank you so much!