INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Track Info Fields  (Read 2006 times)

darichman

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1362
Track Info Fields
« 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!

Logged

Marra

  • Regular Member
  • World Citizen
  • ***
  • Posts: 160
Re: Track Info Fields
« Reply #1 on: March 03, 2006, 06:14:48 pm »

I'm curious too!
Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: Track Info Fields (Can't be done?)
« Reply #2 on: March 04, 2006, 04:53:59 am »

Don't think you can do it, according to this page
http://www.jrmediacenter.com/DevZone/Track%20Info.html

PollyQ

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 65
Re: Track Info Fields
« Reply #3 on: March 05, 2006, 11:24:20 am »

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

Code: [Select]
<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.
Logged

Marra

  • Regular Member
  • World Citizen
  • ***
  • Posts: 160
Re: Track Info Fields
« Reply #4 on: March 06, 2006, 12:26:29 pm »

Thanks pollyQ. I'll give it a try.
Logged
Pages: [1]   Go Up