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
AbAb 

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 Ab
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.