My requirement is to create a script that I can use in html templates. Which will allow only 1400 characters from the description field of an incident.
Following is the script I have tried. But When I use this in the html template (Expression) I could see the preview as null.
var max = $RECORD.action.length();
for ( var i=0; i< max; i )
if ( $RECORD.action[i] != "")
If( total max2 >1400)
actioncopy = actioncopy.replace(/null/g,"<br/>");
action refers to the description field.
Please anyone suggest me a solution.
Thanks & Regards,