RE: Is there is a way to not display the `remove` field on a custom sublist when in view mode only?
Is there is a way to not display the `remove` field on a custom sublist when in view mode only? It causes issues since User Event scripts don’t run in View mode
Rookie Asked on September 12, 2019 in SuiteScript.
Yes, it can be done by manipulating DOM. I did the same several years ago using Mutation Observer to modify the HTML when the paginated data is served by NetSuite because it refreshes the table everytime. I believe that the data is being served in same fashion. You need to inject the client script via userevent’s beforeload trigger to remove the links column. You must also need to take care the cross-browser behavior of DOM manipulation. I hope this may help you.