function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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})'