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.
Javascript Conditional Attributes
Ok here is my problem, I want to do something like this
start script------
if (<%=getCurrentAttribute("item", "custitempdf")%>) is not null
{
document.write('<p><a href='<%=getCurrentAttribute("item", "custitempdf")%>'> View Spec sheet (pdf)</a></p>');
}
end script-----
I am trying to check to see if a pdf spec sheet exists and if it does then I want to display a link to the pdf spec sheet. I cannot seem to get this to work, any suggestions would be greatly appreciated.
0