Exclude Blank Fields
2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 31, 2009 (RSS)
By pjd218 - March 30, 2009
Is there any chance this could be programmed at the field level instead of the javascript excludes on a field by field basis.
Out typical commercial listing may have up to 100 fields, some of which may or not be applicable based on the property type. Ocassionally, we have a residential listing that would not have any of the applicable commercial fields.
Out typical commercial listing may have up to 100 fields, some of which may or not be applicable based on the property type. Ocassionally, we have a residential listing that would not have any of the applicable commercial fields.
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 :).
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/
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/