I am not clear on how to populate a 'select' formfield of type form_page. As an example I will use a list of nearby hotels for an airport.
{af_hotels:optional,form_page,form=hotels,where=ht_iata_code='MCO',label=Hotels}
I want the dropdown select box to include all hotels that are associated with the airport IATA code MCO, which is one of the form fields in the form 'hotels'. How is this done?
The next step would be to replace the 'MCO' hardcoded into the form spec with the value of af_iata_code, this being the value of the IATA code in the form 'airports'.
i.e.
{af_hotels:optional,form_page,form=hotels,where=ht_iata_code=@af_iata_code@,label=Hotels}
Can this, or anything like it be done?
I see that category trees may play a part in this, but am also not clear how this is done?
Regards
Richard