+ Start a Discussion
SandrineSandrine 

Adding new line in custom lable, which will be referred inside apex class, and displayed inside input field(text area)

Hello,

I want to add a text inside like below

User-added image

caseObj.Descripion= Label.Descrption;

Description label is like
"Date:\nTime:\nname:"

When i try to add this label, it always adds the "Date:\nTime:\nname:"
the new line is never added.

How can i achieve it ?
Best Answer chosen by Sandrine
Sure@DreamSure@Dream
Hi Sandrine

Update the label as "Date:<br/>Time:<br/>name:"

Please mark this as the solution, if it solves your problem.

Thanks

All Answers

Sure@DreamSure@Dream
Hi Sandrine

Update the label as "Date:<br/>Time:<br/>name:"

Please mark this as the solution, if it solves your problem.

Thanks
This was selected as the best answer
Mat JaggardMat Jaggard
Annoyingly that works inconsistently for a label - <apex:inputField> supports it but <apex:inputTextarea> and <apex:selectList> don't.