hi i have removed a Remove button but the Trash ca...
# suitescript
v
hi i have removed a Remove button but the Trash can symbol is there still how could i remove that too? could anyone please help me?
c
If you use
document.querySelector("#item_buttons > table > tbody > tr > td:nth-child(7)").style.display = 'none'
it will hide the icon as well. Or, if you would prefer to do it with jquery again, try hiding the entire <td> element that contains the button. It looks like you only hid the button.
v
var stickyHeader = form.addField({ id : 'custpage_stickyheaders', label : 'Hidden', type : serverWidget.FieldType.INLINEHTML }); var scr = ""; scr += 'jQuery("#item_remove").hide();'; stickyHeader.defaultValue = "<script>jQuery(function($){require([], function(){" + scr + ";})})</script>" This is script, what do you mean by <td> on this?
yes i can do it. thank yo
c
Try replacing "#item_remove" with "#tbl_item_remove"
v
yes did that only