Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Suitescript - Hide columns from custom sublist
Hi, everyone.
I have two custom record types. Let's call them Parent and Child. Child is (as you may have guessed) a child of Parent. This means that when I go to a Parent record, there is a sublist of child records there, which is great.
Sometimes I want to hide columns shown in this sublist. I already know about this sort of code:
form.getSubList("sublistname").getField("fieldname").setDisplayType("hidden");I've used this on other records on built-in sublists and it works great. Unfortunately, since this is a custom sublist, I don't know sublistname or fieldname by default. With a little bit of work, I deduced
0