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
MiddhaMiddha 

assign {!Account_FullBillingAddress} to a javascript variable

Hi,

I am having a problem while crating a scontrol.

I want to assign the value of {!Account_FullBillingAddress} to a javascript variable,
when i do that

var test = "{!Account_FullBillingAddress}";

It gives an error "Unterminated string constant" ,(whenever there is a new line charachter inserted by user in account street).

Is there any way to assign this address to a variable.
Please reply.

Thanks
darozdaroz
What I do is use a hidden div tag and put the variable in there and use getElementById to retrieve the value...