ANS-0656 · CUSTOM FIELDS, RECORDS & FORMS
How to Display HTML Content in a NetSuite Custom Body Field
Learn the optimal custom field type for rendering static HTML directly on NetSuite forms, avoiding common formatting and character limitations.
Short answer
To display HTML code on a NetSuite form, create a custom body field of the "Inline HTML" type. Populate this field with your properly formatted HTML content, such as a table, and save the form. Avoid "Text Area" due to formatting issues and "Free-Form Text" due to its 300-character limit.
Scenario
NetSuite users often need to embed custom HTML content, like tables or formatted text, directly onto transaction or entry forms. The challenge lies in selecting the correct custom field type that can render HTML accurately without encountering character limits or incorrect formatting of special characters.
Solution
The most effective method for displaying HTML content on a NetSuite form involves utilizing a dedicated custom field type.
Create a custom body field.
Set the field type to "Inline HTML". This type is specifically designed for displaying static or system-generated HTML content and ensures proper rendering.
Input your desired HTML code into this custom field. For example, if the HTML code includes a table, simply paste the code into the field.
Save the form. If the HTML code is correctly formatted, the content will display as intended on the form.It is important to avoid other field types for this purpose:Text Area: This field type is not suitable because escape characters and double quotes within the HTML code will not be formatted correctly, leading to display issues.Free-Form Text: This field type has a maximum character limit of 300, which is often insufficient for comprehensive HTML content.
Expert NetSuite Support
Need help with this NetSuite issue?
Custom Fields, Records & Forms consulting and configuration support
