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
JuulJuul 

Sent event info with gmail

Hi,

 

I've created a button on my event page that will copy some fields into a new g-mail message.

But when the description field is too long, g-mail will give me an error. 

Is it possible to change the code so g-mail will accept the description field with more than f.e. 1000 characters?

 

javascript:popw='';Q='';x=document;y=window;if(x.selection) {Q=x.selection.createRange().text;} else if (y.getSelection) {Q=y.getSelection();} else if (x.getSelection) {Q=x.getSelection();}popw = y.open('https://mail.google.com/mail?view=cm&tf=0' + escape(document.title) + '&su=Event - at {!Event.Accountname__c} in {!Event.Location} on {!Event.ActivityDate}' + '&to=' + '&body=Dear colleague,'+ escape('\n') + escape('\n') + 'Check out my event summary:'+ escape('\n')+ escape('\n')+ 'Subject: {!Event.Subject}' + escape('\n')+ 'Type event: {!Event.Type_of_event__c}' + escape('\n') + 'Event: {!Event.Event__c}' + escape('\n') + escape('\n') +'{!JSENCODE(Event.Description)} '  ,'gmailForm','scrollbars=yes,width=680,height=510,top=175,left=75,status=no,resizable=yes');if (!document.all) T = setTimeout('popw.focus()',50);void(0);

 Thanks!

 

Juul