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
Mayank Srivastava (Salesforce fan)Mayank Srivastava (Salesforce fan) 

Can someone please help me figure out this simple issue?

var cVal = '{!Account.Consulting_Rate__c}';

var cValues = cVal.split(' ');
location.replace('/a0c/e?CF00NC0000005ODrN={!Account.Name}&00NC0000005ODsB='+cValues[1]);


How do I add another assignment to the above location replace code?
Let's say I want to add:
00NC0000005yuiG=+cValues[0]);

I tried everything but just can't get it to work.
Avidev9Avidev9

It should be easy

 

location.replace('/a0c/e?CF00NC0000005ODrN={!Account.Name}&00NC0000005ODsB='+cValues[1]+'00NC0000005yuiG='+cValues[0]);

 

Mayank Srivastava (Salesforce fan)Mayank Srivastava (Salesforce fan)

 

Thanks!