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
Custom URLs in lists - can it be done?
Hi
I'm trying to create a sublist that on a per line basis, contains a link to a popup window. Is this possible to do?
At the moment I got a sublist with URLs but there are two problems:
a) The column displays the full URL rather than a label, e.g. "Link".
b) The URL does not go to a pop-up window.
Sample code:
function beforeLoad(type, form) { if ((currentContext.getExecutionContext() == 'userinterface') && (type == 'edit' | type == 'view')) { // Add new sublist on Custom tab var sublist = form.addSubList('custpage_samplelist', 'list', 'Sample Tab', 'custom'); // Add header fields sublist.addField('custpage_samplelist_url', 'url', 'View'); sublist.addField('custpage_samplelist_desc', 'text', 'Description'); // Create list values values = new Array(); row = new Array(); row['custpage_samplelist_url'] = ' 0