+ Start a Discussion
Karleen MendozaKarleen Mendoza 

Onclick Javascript email button quirk

Created a custom button that will open a new Outlook email message with merge fields from the Salesforce record - suddenly the merge fields from Salesforce do not put the merge field where it's supposed to. The Subject line gets put into the To: field:

Anybody else having this issue? Seems to only affect a few of my users - I myself cannot replicate the issue which is weird.

See below -
User-added image
Here is the code:
 
javascript:location.href='mailto:support@wingsinsurance.com '+' &SUBJECT={!Policy__c.Named_Insured__c}%20-%20(Policy #:%20{!Policy__c.Policy__c})'