- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2019 04:37 AM
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!!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2019 04:42 AM
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.
Read more about Isolate Scripts in here
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2019 04:42 AM
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.
Read more about Isolate Scripts in here
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2019 10:10 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2019 07:00 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2020 08:43 AM
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