Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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
0
