INTERACT FORUM
Windows => Plug-in Development => Topic started by: darichman on October 07, 2005, 06:54:30 am
-
Hey all. Just wondering if there is a way for me to get a Track Info template to only display a field if the field is populated.
I know about the TrackInfo_IsEmpty(field name) function, but can only get it to display True or False.
I'm kinda new to this, so any help at all would be appreciated!
-
I'm curious too!
-
Don't think you can do it, according to this page
http://www.jrmediacenter.com/DevZone/Track%20Info.html
-
Just wondering if there is a way for me to get a Track Info template to only display a field if the field is populated.
I don't know if this is the easiest way, but you can use JavaScript to test the output from the function, e.g.,
<script>
if ("TrackInfo_IsEmpty(Comment)"=="TRUE") {
document.write("No Comment")
}
else {
document.write("TRACKINFO_INSERT_COMMENT")
}
</script>
Note that you need double quotes around the TRACKINFO keywords & functions.
-
Thanks pollyQ. I'll give it a try.