Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Copy data from String Field to HTMl with proper format

Priya75
Tera Contributor

Hi All,

 

I have a String field , which has a defaut value as:-

1.Issue : abc

2.Business Impact : abc

3.Mitigation or actions taken : abc

 

on submit of this form, its get copied to a HTMl field, but the format is bit different like shown below. Is there any way to change it i want to make issue, business impact bold  and want to have few spaces as well .

1.Issue : abc 2.Business Impact : abc 3.Mitigation or actions taken : abc

7 REPLIES 7

Sai Kumar B
Mega Sage

Hi Author,

Auto-populate the HTML field with the below format

<p>1. <strong>Issue : </strong>abc<br>2. <strong>Business Impact : </strong>abc<br>3. Mitigation or actions taken : abc</p>

Output

1. Issue : abc
2. Business Impact : abc
3. Mitigation or actions taken : abc

But i am getting the values from the Incident table to outage table, one is string and other one is HTML:.

 

Upender Kumar
Mega Sage

Befor copying try using yourString.replacAll('\n','<br>');

The value is getting copied from the String Field to HTML field and all the changes i want to do in HTML field.