Marty Zigman Marty Zigman
Prolecto Labs Accelerator Templates

How To Stretch and Fill NetSuite Inline HTML Content

NetSuite Technical



This article is relevant if you are using a custom NetSuite inline HTML field and you want the contents of the HTML to fill across multiple columns of information.

Background

Nearly all of our clients leverage our Record State Manager framework to bring forth business rules that management diligently works to produce exception-based automation in their operations.   Our clients enjoy being able to bring forth the rules that do not pass so that users understand what additional care is required on their records.

We use a dynamic HTML table to explain the rules.  The table is drawn via the injection of a custom inline HTML field.  I have written before about these NetSuite inline HTML fields as a way to take control over the user experience:

  1. Learn how to Hide NetSuite Sublist Buttons and Other HTML Elements
  2. Set NetSuite’s Default Tab on Standard Forms
  3. Bind NetSuite SuiteScript Client Side Code in Form View Mode

Stretch NetSuite HTML to Fit Screen Width

In our application, we dynamically draw a field group in the NetSuite beforeLoad event. In that field group, we add the dynamic HTML. If we stop there, the HTML will only fill the first column of information. We however want the HTML to fill the entire field group. To do this, we need to use some jQuery to expand the way that NetSuite lays out its form definition. To do that, we inject yet another inlinehtml field to push in a script that looks for the table definition of our field group.

Click on the related image to see the code.

Push on Perceived Obstacles

When people work with the NetSuite platform, it pays to remember the fundamentals of software architecture. The NetSuite platform gives us plenty of capacity to be highly productive. When we think we run into a limitation during our customization efforts, it only takes standing back to know that we can indeed get control.

If you found this article relevant, feel free to sign up to be notified when I publish new ones. If you seek to work with professionals that push beyond the common NetSuite wisdom, let’s have a conversation.

Marty Zigman

Holding all three official certifications, Marty is regarded as the top NetSuite expert and leads a team of senior professionals at Prolecto Resources, Inc. He is a former Deloitte & Touche CPA and has held CTO roles. For over 30 years, Marty has produced leadership in ERP, CRM and eCommerce business systems. Contact Marty to set up a conversation.

More Posts - Website - Twitter - Facebook - LinkedIn - YouTube

About Marty Zigman

Marty Zigman

Holding all three official certifications, Marty is regarded as the top NetSuite expert and leads a team of senior professionals at Prolecto Resources, Inc. He is a former Deloitte & Touche CPA and has held CTO roles. For over 30 years, Marty has produced leadership in ERP, CRM and eCommerce business systems. Contact Marty to set up a conversation.

Biography • Website • X (Twitter) • Facebook • LinkedIn • YouTube

One thought on “How To Stretch and Fill NetSuite Inline HTML Content

Leave a Reply

Your email address will not be published. Required fields are marked *