In this article, we will discuss how to create button-style links in NetSuite Saved Searches using Formula (HTML) fields. This technique helps make Saved Searches more interactive and easier to use by turning plain text links into visually styled action buttons.
Solution: Using Formula (HTML) Field
By combining HTML links with inline CSS styling, you can create clickable buttons directly inside Saved Search results.
These buttons can be used to:
- Open customer or transaction records
- Launch external URLs
- Trigger email links
- Navigate users quickly to related records
Example Formula:
Example using a customer internal ID:
'<a href="/app/common/entity/custjob.nl?id=' || {internalid} || '"
style="padding:4px 8px;
background:#0070d2;
color:white;
text-decoration:none;
border-radius:4px;
font-weight:bold;">
View Customer
</a>'
This formula creates a clickable button that opens the customer record.
Example Result:
How It Works:
The formula combines:
- An HTML <a> hyperlink
- A dynamic NetSuite record URL
- Inline CSS styling
Common Styling Options
Style | Purpose |
|---|
background | Button color |
color | Text color |
padding | Button spacing |
border-radius | Rounded corners |
font-weight | Bold text |
text-decoration:none | Removes underline |
For more styling options, search online for HTML and inline CSS button examples to explore different colors, layouts, hover effects, and formatting styles.
Notes
-Formula (HTML) fields support limited HTML rendering within Saved Searches.
-Styling support may vary slightly between NetSuite UI versions and browsers.
-Keep styling simple for best compatibility.
-Test formulas in a Sandbox account before deploying to production.
Button-style links are a great way to improve Saved Search usability without requiring SuiteScript customization.
Small UI enhancements like this can help users navigate records faster and create a cleaner, more user-friendly experience inside NetSuite.
-----
If you find this information useful, let us know by reacting or commenting on this post!