Hide 'Compose' Section in Service Operations Workspace

tiguin2798
Tera Guru

Hello,

 

I have been tasked with hiding work notes, additional comments, activity stream for incident records with a certain subcategory for a specific group. I have achieved this with an onLoad client script that hides the 'Notes' section in legacy view. The issue is with Service Operations Workspace. Is there a way to hide the 'Compose' section in the middle with these conditions? (Please do not mind the lack of fields on the incident form as I was testing hiding additional fields as well.)

Hiding the whole section is perfectly fine as I have tried business rules, ACLs on the journal table, and client scripts. I'm unsure how to proceed to achieve this.

tiguin2798_0-1726023016074.png

 

2 REPLIES 2

Community Alums
Not applicable

Hi @tiguin2798 ,

You can hide it with the help of UI Builder !!

Find the name of the Experience (Workspace) that has the page with the "compose section" in the middle of the page that you want to hide. 

Open the Experience.
Make sure you are in the correct Application Scope.
When it is open, click on the Page dropdown and select Record.

SandeepDutta_0-1726023817216.png

 

 

 

In the left side panel, select Activity Stream Compose first,

 

 

SandeepDutta_1-1726023817332.png

 

 

 

A new config panel will appear on the right side of the page.

Click the Preset dropdown and make sure it is set to None.

 

SandeepDutta_2-1726023817228.png

 

 

 

Then, click the small "eye" icon just above the Preset dropdown. 

SandeepDutta_3-1726023817253.png

 

This will open a new configuration option on the right side of the page.
Make sure Component visibility is set to Hide component.

SandeepDutta_4-1726023817224.png

 

Click the Save button at the top right.

 

reference : Workspace List Item - Hide Compose/Activity Middle Pane (How?) 

Thank you for your assistance! I did come across this article as well, but am having a little trouble locating the correct page. My UI Builder looks a little different with my instance being on Washington DC and I am very new to this configuration. When going into my SOW experience I see a few record pages.

tiguin2798_0-1726064754517.png

 

My guess was that 'Record SNC' would be the correct one, but this is missing the 'Activity Stream Compose' component. I do see it under 'SRP Record' and attempted to clone and hide the component based on the following scripted conditions, but it is still not working when testing. Any advice on this?


(function checkConditions(current, previous /*null when async*/) {
    if (current.getTableName() == 'incident') {
        if (gs.hasRole('xxxxx_CAB_Standard_Read')) {
            var subcategory = current.subcategory;
            
            var allowedSubcategories = [
                'ir test 1', 'it test 2', 'ir test 3', 'ir test 4', 'ir test 5', 'ir test 6'
            ];

            if (allowedSubcategories.indexOf(subcategory) > -1) {
            }
        }
    }
})(current, previous);