The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Line Break in Workflow Scripting

codedude
Mega Expert

Is there a way to do line breaks `<br/>` in the advanced script portion of a workflow activity:

Example:

task.short_description = "Line1" + "<br/>" + "Line2" + "<br/>";

Thanks.

1 ACCEPTED SOLUTION

zica
Giga Guru

Hi John,



as it is javascript, could you please replace <br/> to "\n" and test again ?



Kind Regards


ZA



Do not feel shy to mark correct or helpful answer if it helps or is correct


View solution in original post

4 REPLIES 4

zica
Giga Guru

Hi John,



as it is javascript, could you please replace <br/> to "\n" and test again ?



Kind Regards


ZA



Do not feel shy to mark correct or helpful answer if it helps or is correct


Hi Zica,

 

Can you check this please

 

In Catalog task, I am trying to modify 'Description' from workflow based on the drop  

 

if(current.varaiables.zone == "1"){
task.description = "1) XYZ"  + "\n" + "2) ABC" + "\n" "3) 123";

}

 

find_real_file.png

when i try using this script in advanced script, this is how description is showing up. Some value is showing in the  Description field, but it is not visible. what i am missing?

 

 

Thanks,

Jay 

srinivasthelu
Tera Guru

Hi Josh,



Are you trying to add line break to the short_description of task record?



Thats not even possible, because it is a single line text field.



Thanks


Srini


It is actually description