Exclude Blank Fields

2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 31, 2009   (RSS)

Re: [pjd218] Exclude Blank Fields

By ross - March 31, 2009

Hi there.

Thanks for posting!

You'll actually need to do the coding for this right on the page itself but it can be done with PHP instead of Javascript. In fact, I highly recommend you use the PHP instead of Javascript.

What you need to do is something like this:

<?php if ($record['myField']): ?>
do something
<?php endif ?>

You just need to make sure the $record['myFile'] is accurate for your system.

Does that sound like it will work? Let me know :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/