Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Reply
Employee
Posts: 629
Registered: ‎04-24-2009

Re: Mail Merge to Opportunity Fields

The select case statement forces the fields to upper case. VBScript was not case sensitive; JavaScript is.

 

Change:

 

case "Custom_Test":
    range.InsertAfter("my Test");
break;

 

To:

 

case "CUSTOM_TEST":
    range.InsertAfter("my Test");
break;

 

Thanks

 

Mike

Copper Elite Contributor
Posts: 39
Registered: ‎07-13-2010

Re: Mail Merge to Opportunity Fields

Thank you for your help! That's it!

Employee
Posts: 629
Registered: ‎04-24-2009

Re: Mail Merge to Opportunity Fields

Glad to help.

 

Thanks

 

Mike

Silver Contributor
Posts: 1,262
Registered: ‎04-08-2009

Re: Mail Merge to Opportunity Fields

I edited the source script directly and not added my own one. I think this should not do the trick but this is what is different from your approach.

Maybe you can post the jscript function (from the compiled js file) so we may see the problem.

Alexander

 

Copper Elite Contributor
Posts: 39
Registered: ‎07-13-2010

Re: Mail Merge to Opportunity Fields

Hi Alexander,

 

spelling my Custom Fields with all uppercase letters solved my problem.

Thank you for your assistance anyway.

 

 

Employee
Posts: 629
Registered: ‎04-24-2009

Re: Mail Merge to Opportunity Fields

For those trying to override the HandleOnCustomFieldName event in the Web client for 8.1, please see the following post:

 

http://community.saleslogix.com/t5/Saleslogix-v8-1-Beta-Discussions/Adding-custom-mail-merge-fields/...

 

Thanks

 

Mike