I have requirement to Hide the "Post Additional Comments" button on the SOW form.

raviteja1600
Tera Contributor

Hi Everyone,

 

I successfully hidden the "Post" buttton on the Classic form. But I am not able to hide the "Post Additional Comments" button on the SOW form.

 

Code I used for Classic Form:

UI Policy -- When Assigned to Is empty & runs on Desktop

 

function onCondition() {
    var thePostButton = document.getElementsByClassName('btn btn-default activity-submit');
    for (var i = 0; i < thePostButton.length; i++) {
        thePostButton[i].style.color = 'transparent';
        thePostButton[i].style.background = 'transparent';
        thePostButton[i].style.borderor = 'none';
        thePostButton[i].style.visibility = 'hidden';
    }
}
 
Coming to SOW Form,
Code I used for SOW form but not working.
UI Policy -- When assigned to is empty & runs on Desktop

function onCondition() {
    var thePostButton = document.getElementsByClassName('now-button -tertiary -md is-disabled');
    for (var i = 0; i < thePostButton.length; i++) {
        thePostButton[i].style.display= 'none';
    }
}
 
Please correct me where I am doing wrong.
3 REPLIES 3

Neha29
Tera Contributor

did you get the solution?

Hi Neha,

 

No, I didn't get any solution.

Hi Neha,

 

No, I didn't get any solution.