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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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