Important Update: Some Community URL Redirects are Under Maintenance. Learn More. .

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove "Does Not Advance" label from Action dropdown

AjitDubey
Contributor II

Hi All,

I have a requirement to remove the Save and Save and Close button from Action dropdown, once the record is enrolled to the workflow. I have written the required custom object code to hide those button, but I am unable to hide "Does Not Advance" label. Is there a way to hide that label?

Sys.Application.add_load(function() {
var ed_mode = ArcherTech.UI.GenericContent.GetInstance().get_mode();
if (ed_mode == 1) {
var value = ArcherTech.UI.GenericContent.GetInstance().getFieldValue(24524);
if (value == 'Y') {
$('#master_btnSave1').css('display', 'none');
$('#master_btnApply1').css('display', 'none');
}
}
});

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

DavidPetty
Archer Employee
Archer Employee

@AjitDubey, you can try

 

$('.tb-btn-link-left:contains("Does Not Advance")').hide();

 

 Advisory Consultant

View solution in original post

2 REPLIES 2

DavidPetty
Archer Employee
Archer Employee

@AjitDubey, you can try

 

$('.tb-btn-link-left:contains("Does Not Advance")').hide();

 

 Advisory Consultant

Thank you, a little modification to your code worked. 

$('.dropdown-content-label:contains("DOES NOT ADVANCE")').hide();