You need to sign in to do that
Don't have an account?
Samantha Chua
How do I concatenate Merge Fields in Javascript Custom Button?
Hi Guys!
I am creating this custom button. What it does is that it will create a contract and push values from opportunity over, whenever it is being clicked.
Running into a problem here as I am trying to make my contract name = Opportunity contract type + Opportunity product + opportunity account name.
How do i do the concatenation?
Here is a snippet of my codes:
Any help is greatly appreciated!
Regards,
Samantha (:
I am creating this custom button. What it does is that it will create a contract and push values from opportunity over, whenever it is being clicked.
Running into a problem here as I am trying to make my contract name = Opportunity contract type + Opportunity product + opportunity account name.
How do i do the concatenation?
Here is a snippet of my codes:
c.Name = "{!Opportunity.Contract_Type__c}"; + "{!Opportunity.Account}";
Any help is greatly appreciated!
Regards,
Samantha (:
I did not understand how you using c.Name in JavaScript.
But to concatenate Merge fields in JavaScript, You can assign this variable contractname to the Inserting Contract's Name.
Let us know if that helps you.
Best Regards,
BALAJI
Put below code in button and try. It will defenitly work
Let me know if it helps.