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.
Launch URL in Current Tab
Hi there,
I have a Suitelet form that displays a Sublist. In the Sublist, I show a URL in one column that I get from running a search for a given 'Hyperlink' field in an Entity record. I'm hoping to have this URL launch in the current tab when clicked. I'm currently using a 'FieldType.URL', but suspect that I should instead use 'FieldType.INLINEHTML', yet that produces an error when I use the following code snippet. Any ideas what I'm doing wrong?
var url = '<a href="' + result.getValue({ name: 'custentity_pay_url' }) + '" target="_self">Link</a>'; 0