AnsweredAssumed Answered

Adding a New Line for Salesforce Address Field

Question asked by bgoulette on May 14, 2014
Latest reply on May 14, 2014 by bgoulette
I am integrating with Salesforce.  The source has 2 lines for address and I want to merge them into one and place a new line in between them.  Using javascript, I have tried the following without success;

     if (s2 == null || s2 == "")
     {output=s1;}
     else
          {output= s1 + <br> + s2  ;}

     as well as this one...

          if (s2 == null || s2 == "")
          {output=s1;}
          else
          {output= s1 + \n + s2  ;}

Anyone have the solution for this seemingly simple quandry?

Outcomes