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
a!a! 

concatenate two standard fields with space

 obj1.name = obj2.name+obj3.name;

 getting out put as "namename"

but i need space or any special character in between two filelds as name name or name-name.

 

 

Thanking you in advance.

 

Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard
 obj1.name = obj2.name+' '+obj3.name;

 should do the trick. You can change the space to a '-' if you prefer that separator.