Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
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 .