Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
We apologize for any inconvenience this may cause and appreciate your understanding.
NSC | How to create a Portlet Script with Inline HTML to display an image from the File Cabinet
Scenario
The user has an announcement that they want to display in NetSuite using a custom portlet and when users click on the image, they will be redirected to another page.
Solution
In this example, I used the SuiteAnswers’ home page as the value of the href attribute in the <a> tag and then took the file link from a gif image in the File Cabinet and used it as value for the src attribute in the <img> tag in the inline HTML. To get the File URL, you must:
1. Go to Documents > Files > Images.
2. Click on the Name of the file that you want to use. This will open the
Refer a Member to the Community | Earn the Answer Accepter Badge | Vote for the contents you'd like to see