Discussions
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.