Sujatha V M
Kilo Patron
Kilo Patron

In this article, we will see how to hide/show the "Email" section in the Compose pane for some states. 

 

For hiding the "Email" section permanently, please follow this link : Service Operations Workspace – How to hide the “Email” section in Compose pane?

 

➡️ Navigate to UI Builder and select “Service Operations Workspace” experience. 

 

➡️ Make sure the “Application” is as per the scope you wanted it to be added.

 

➡️ Select and the clone the “SRP Record” page variant and deactivate the out-of-the-box. 

 

Note : To know the process of how to clone the page, follow this : Service Operations Workspace – How to clone the landing page?

 

➡️ In the cloned SRP record, select “Activity Stream Compose” which holds Component visibility, Data, Display & Advanced sections.

 

SujathaVM_0-1736579892627.png

 

In the Advance section, use the below script to display/hide “Show email mini compose” section.

 

For demo purpose, I have used incident "Resolved" state. 

 

SujathaVM_1-1736579915433.png

 

Note: The reason for scripting by replacing the data resource syntax [IF(@data.record.isEmailClientEnabled, "ALWAYS", "NEVER")] is because by default email client is enabled for Incident table.

 

SujathaVM_2-1736579954456.png

 

Reference: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1650420

 

By doing this modification, we are going to display the email section in “Resolved” state instead of “On Hold – Awaiting Caller” section.

 

SujathaVM_3-1736579975736.png

But why doesn’t display as “Inline” section as out-of-the-box? Because the mode validates the display of the components, modify it accordingly as per your needs or you can toggle the “Stacked View” on the compose section.

 

SujathaVM_4-1736580008249.png

 

Kindly mark this article as "Helpful" if this resolves your query.

 

#ServiceNow #ServiceNowCommunity #ServiceOperationsWorkspace

Comments
Kim Sullivan
Tera Guru

Somewhat off-topic, but have you explored how to hide the Post button from this Compose widget?  We need our techs to use Save to record any time worked on the record - so need to disable/remove the Post button.

Sujatha V M
Kilo Patron
Kilo Patron

@Kim Sullivan  Let me check on it and revert you! 

泉玉
Tera Explorer

OK

Sujatha V M
Kilo Patron
Kilo Patron

@Kim Sullivan  @泉玉 I had tried the below steps and it had hidden the "Post Comments" button. 

 

- Make sure the system property "glide.activity.compose.can_post_mandatory_fields" is set to "False" by default 

- Create a UI policy and make the journal field mandatory according to the states where you want to hide the "Post Comments" button. 

 

SujathaVM_0-1743788620550.png

Note : For testing purpose had set the UI policy to "In progress" state. You may try to hide it based on your requirement. 

 

Reference : https://www.servicenow.com/docs/bundle/yokohama-platform-user-interface/page/administer/workspace/ta...

Version history
Last update:
‎01-10-2025 11:29 PM
Updated by:
Contributors