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!
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