populate list field based on another list field's selection

14 posts by 3 authors in: Forums > CMS Builder
Last Post: May 24, 2009   (RSS)

By ross - May 13, 2009

Hi there.

I am a little lost on this one now. Are you working inside the forloop for your images?

Could you give me a bit more detail? Thanks!
-----------------------------------------------------------
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/

By ross - May 14, 2009

Hi there.

Thanks for those extra details!

The first thing here is that you can actually have a statement like:

list($locRecords, $locMetaData) = getRecords(array(
'tableName' => 'locations',
'where' => "country='whatever' AND var = 1 AND xwz = 'Ross'",
));


I think that will actually get you going. One thing to notice is that when you have a bunch of things in the where clause, it's usually better to have it surrounded in double quotes so that you can use single quotes around strings like country.

Does that make sense? 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/

Re: [ross] populate list field based on another list field's selection

Thanks ross, worked like a charm...

it's weird though -- that's the FIRST thing I tried and for whatever reason, it didn't work the first time. [:/]

Anywho, all is well now. Thanks again!