How to remove or hide a custom subtab or sublist (...
# suitescript
s
How to remove or hide a custom subtab or sublist (both works for me) from a record using script. Note : I wanted the subtab/sublist to display only if a check box is selected. 1.The record is vendor. 2.The subtab is custom one . The sublist in it is also custom sublist. Please help me with inputs. Thanks.!
b
the only suitescript option is Sublist.displayType
in the likely case that method doesnt work ,you need to ignore netsuite's warnings about dom manipulations and learn how to manipulate the dom with javascript
s
Yeah @battk I took the Id of the element from console . And did getElementbyId(). Like document.getElementById("test").style.display = "hidden"; It worked. Thanks for the time mate !