Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Using document.write to display item description
GOAL:
I have a new item drilldown template that includes tabbed information about the product. For example, items may have tabs for "description", "specifications", "instructions", "photo gallery", etc. etc.. Some items will need all tabs, and others will not. It is preferred to have one item template that dynamically adjusts it's tabs rather than having multiple templates.
My goal is to use javascript to check the item fields that will be displayed on optional tabs, and only return the tabs that apply to the current item. The tabs are pretty easy to write into the document using document.write since it's only a few <div> containers and custom tags to display the data. Any quotation marks in the visible code on my template can be easily escaped using a .