How to make the description field as HTML in Service Operations Workspace

Community Alums
Not applicable

 

Is it possible to have the 'Description' field in Summary as HTML? Its making the HTML entered into the classic Description look not great.

 

RJ8_0-1688558353353.png

 

RJ8_1-1688558394274.png

 

 

3 REPLIES 3

Riya Verma
Kilo Sage
Kilo Sage

Hi @Community Alums ,

Hope you are doing great.

To make the description field display as HTML in Service Operations Workspace within ServiceNow, you can follow these steps:

  1. Identify the table in which you want to enable the HTML formatting for the description field.

    Let's assume the table in question is called "Incident" (commonly used for IT asset management).

  2. Create a UI Macro to Handle HTML Rendering: For this case, we'll create a UI Macro to handle the HTML rendering of the description field.

    Create a new macro and set the "Element" field to "HTML". In the "HTML" field, you can write the necessary HTML code to format the description as you desire.

    For example:

 

<div style="font-size: 14px; color: #333;">
    ${description}
</div>

 

  •  we need to update the form layout for Service Operations Workspace to include our newly created UI Macro.

    Go to "Service Operations" > "Workspace Configuration" and select the appropriate workspace for which you want to enable the HTML rendering of the description field.

    In the form layout section, locate the "description" field and replace it with the reference to our UI Macro. Use the macro syntax like this

 

${UI_MACRO_NAME}

 

 

  • Save the Configuration and Test
 
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma

Community Alums
Not applicable

Hi @Riya Verma ,

Thanks for your response.

Could you please elaborate the solution you shared.

 

Community Alums
Not applicable