Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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 .