In NetSuite, Custom Fields allow users to tailor records and forms to fit specific business needs. These fields can be added to standard or custom records and can be configured in various data types depending on the nature of the data to be stored or captured.
In this article, we'll tackle on the Inline HTML field type.
Description:
An Inline HTML field injects HTML markup into a form. This content can be styled, scripted, or dynamically generated using SuiteScript or form-level scripting. It’s frequently used to enhance form UI, guide users, or display calculated or real-time content.
The field limit of the Inline HTML Field Type is 4000 bytes. In English, 4000 bytes is 4000 characters, but in other languages, the number of characters may be fewer.
How to Create a Inline HTML Custom Field:
Note: In this example, we'll guide you on how to create this in Transaction Records.
Navigate to Customization > Transaction Body Fields > New
On the Transaction Body Field page, set the following fields below:
- Label: <Set the name of your field here>
- Type: Inline HTML
Applies To subtab:
Validation & Defaulting subtab:
- Default Value: <Set your HTML code here>
Here's a sample code:
<div style="font-weight:bold; font-size: 12px;">This is a Sample Text</div>
<ol>
<li style="color: red;">Check the Approval Status</li>
<li style="color: green;">Check the Next Approver</li>
<li>Edit the Sales Order</li>
</ol>
Click on Save
Appearance:
On your records, this is how it should look like:
I hope this helps! 😁
The sample code described herein is provided on an "as is" basis, without warranty of any kind, to the fullest extent permitted by law. Oracle + NetSuite Inc. does not warrant or guarantee the individual success developers may have in implementing the sample code on their development platforms or in using their own Web server configurations.
Oracle + NetSuite Inc. does not warrant, guarantee, or make any representations regarding the use, results of use, accuracy, timeliness or completeness of any data or information relating to the sample code. Oracle + NetSuite Inc. disclaims all warranties, express or implied, and in particular, disclaims all warranties of merchantability, fitness for a particular purpose, and warranties related to the code, or any service or software related thereto.
Oracle + NetSuite Inc. shall not be liable for any direct, indirect, or consequential damages or costs of any type arising out of any action taken by you or others related to the sample code.
__
Want to learn more about Customization? Visit New to NetSuite: SuiteBuilder & SuiteBundler