Copy data from String Field to HTMl with proper format
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2022 09:30 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2022 12:14 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2022 01:35 AM
But i am getting the values from the Incident table to outage table, one is string and other one is HTML:.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2022 02:01 AM
Befor copying try using yourString.replacAll('\n','<br>');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2022 02:30 AM
The value is getting copied from the String Field to HTML field and all the changes i want to do in HTML field.