You need to sign in to do that
Don't have an account?
ShadowlessKick
JavaScript button
A javascript button extracts string data from a textarea. The string has a newline character of "\r\n" inside the html. When the javascript line is extracted it looks like this -
var TheDrawingNumber = "{!tenrox__c.KI_Drawing_Space_Plan__c}";
An error of "Unterminated string constant" is displayed.
How can the value be extracted without the javascript blowing up?
Is there a way like "{!tenrox__c.KI_Drawing_Space_Plan__c.replace(/(\r\n|\n|\r)/gm, "%2c") }";
var TheDrawingNumber = "{!tenrox__c.KI_Drawing_Space_Plan__c}";
An error of "Unterminated string constant" is displayed.
How can the value be extracted without the javascript blowing up?
Is there a way like "{!tenrox__c.KI_Drawing_Space_Plan__c.replace(/(\r\n|\n|\r)/gm, "%2c") }";
I have following data in correcponding account,
In case your are still unable to make it work, try this,