Unable to hide 'Cause' section

JohnnySnow
Kilo Sage

Hi Team,

 

I'm trying to hide the cause section which is available on the incident overview page of the service operation workspace.

JohnnySnow_0-1736907115005.png

and I tried creating a UI policy on Global Scope app and Incident Management for SOW scope as well. But it doesnt seem to work, can any one point out what needs to be done to hide this section?

 

UI Policy:

JohnnySnow_1-1736907232674.png

Script:

function onCondition() {
	g_form.setSectionDisplay('cause', false);
}

 

Thanks
Johnny

Please mark this response as correct or helpful if it assisted you with your question.
11 REPLIES 11

Ankur Bawiskar
Tera Patron
Tera Patron

@JohnnySnow 

the section is present in view "SOW-Incident-Overview"

So make sure you select that view in your UI policy

AnkurBawiskar_3-1736911195402.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

HI @Ankur Bawiskar Thanks for the reply.

So I checked my instance and configured the form layout, I could see the view being used is Service Operations Workspace (check below screenshot) and hence I had selected that view in the ui policy.

JohnnySnow_0-1736980513327.png

But I gave a try with the view name you mentioned but I can still see that field on the SOW.

 

JohnnySnow_1-1736980585178.png

 

Thanks
Johnny

Please mark this response as correct or helpful if it assisted you with your question.

@JohnnySnow 

OOB in my instance the view is different

Are you sure that Cause section is in correct view in your instance and UI policy is on correct view?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar I checked my instance and OOB it is Service Operations Workspace. The UI policy is on correct view. Were you able to hide in your instance?

 

Thanks
Johnny

Please mark this response as correct or helpful if it assisted you with your question.