Hide buttons on the bottom form

miro2
Mega Sage

Hi,

 

I'm looking for an option to hide the buttons at the bottom of the form. I want the buttons in the header to stay, but I want to get rid of the buttons at the bottom of the activity stream.

miro2_0-1695363315120.png
I tried use $$('#action_name'_bottom)[0].hide();  in UI Policy but it doesn't work.

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@miro2 

It will require DOM manipulation which is not recommended practice.

Check this link

Ensure Isolate script field for UI policy is marked as False

Unable to show/hide UI action located at the bottom of the form through a UI policy. 

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

View solution in original post

5 REPLIES 5

Danish Bhairag2
Tera Sage
Tera Sage

Hi @miro2 ,

 

I think the issue might be with isolate script field which needs to be set as false.

 

please try below link;

https://community.servicenow.com/community?id=community_question&sys_id=2cf54361db1cdbc01dcaf3231f96...

 

ensure Isolate Script is set to false, this field is not on form, you need to set this field from list layout as false

 

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.


Thanks,

Danish

Ankur Bawiskar
Tera Patron
Tera Patron

@miro2 

It will require DOM manipulation which is not recommended practice.

Check this link

Ensure Isolate script field for UI policy is marked as False

Unable to show/hide UI action located at the bottom of the form through a UI policy. 

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 
just want to confirm, $$('#action_name'_bottom)[0].hide() is a DOM manipulation or both, I mean the solution provided in KB

@miro2 

it's DOM manipulation.

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