Hide section of a form on Agent Workspace

pauladams
Tera Contributor

Hello Gurus,

I am trying to hide sections on a Requested Item form using g_form.setSectionDisplay("section_name", false). This perfectly works fine on a regular form/view of the platform.

The problem is with the Agent Workspace and is not hiding the section/sections.

Can you please help me understand if g_form.setSectionDisplay is supported on Agent Workspace? Or are there any other alternatives?

 

Thanks in advance

-Pa

5 REPLIES 5

Ashley Snyder1
Giga Guru

I've used g_form.setSectionDisplay in the Workspace UI with a UI Policy Run Script set to All.

For fun try a UI Policy, Run Script set to All, I didn't put any conditions in, I just wanted to hide Related Records always, but this can be flipped if using conditions:

 

Execute if true:

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

Execute if false:

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