script is not working for Workspace

pramn
Tera Guru

Team , good day !

We have written script to hide dms details related links. that is working fine for Native view , but its not working for agent workspace ....

 

g_form.setSectionDisplay('dms_details',true);

 

g_form.setSectionDisplay('dms_details',false);

 

 

Please have a look and let me know what can be done here .

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@pramn

please share your complete script and script screenshots

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

Maik Skoddow
Tera Patron
Tera Patron

Hi @pramn 

the given API methods only apply to the classic UI, but not to any workspaces. These workspaces are different experiences with different technologies and different APIs.

Maik

so what would be the correct API ?

Sid_Takali
Kilo Patron
Kilo Patron

Hi @pramn I believe g_form.setSectionDisplay(); will be used to Show/Hide form sections and it will work on both Native UI and Workspace if you correctly configure. Please have a look at my attachment it works for me on both UI.Screenshot (388).png

Note: Related Links are basically UI Actions

 

Please Don't forgot to mark Helpful/Correct, if applicable,

Regards

Siddharam