I need to remove the Post Button under the work_notes

marcelo list2
Kilo Contributor

Hi,

 

I need to remove the Post Button under the work_notes.

 

i tried to use DOM manipulation.

 

i create an On Load client script like this:

 

function onLoad() {
alert ("2");
//Type appropriate comment here, and begin script below
var thepostbutton = document.getElementsByClassName('btn-default pull-right activity-submit');
alert ("3");



for (var i=0; i< thepostbutton.length; i++ ){

thepostbutton[i].style.color = 'transparent';
thepostbutton[i].style.background = 'transparent';
thepostbutton[i].style.border = 'none';
thepostbutton[i].style.visibility = 'hidden';
}
}

 

but i cant reach the alert ("3")

i need your help

 

Thanks!!

 

 

 

1 ACCEPTED SOLUTION

Alikutty A
Tera Sage

Hello,

Are you in London? If Yes you need make Isolate script field to FALSE on your client script to get a DOM script executed. You can do it from a list view.

I have tested this and it works only if you un-check the Isolate script and set it to false.

find_real_file.png

Read more about Isolate Scripts in here

 

Thanks!

View solution in original post

4 REPLIES 4

Alikutty A
Tera Sage

Hello,

Are you in London? If Yes you need make Isolate script field to FALSE on your client script to get a DOM script executed. You can do it from a list view.

I have tested this and it works only if you un-check the Isolate script and set it to false.

find_real_file.png

Read more about Isolate Scripts in here

 

Thanks!

Hello Marcelo,

Is this answered? Do you have any other queries. If your query is answered, please do mark the correct answer and close the thread

Jace Benson
Mega Sage

So it seems there's no property or attribute for this.

One way to solve this without a client script is to build your own activity formatter which is no small task.

nikhil_001
Tera Contributor

One of my customer wants to see worknotes and additional comments as HTML field in incident form. I have achieved that by creating two new custom field and hiding the existing fields and writing two before business rules to copy the data from new fields to the older one. One thing which is missing is the post button beneath the work notes and comments. Could you please tell me , how can i achieve the same back on my form with