By pbland on
I've built a module that uses the Form API to display a simple form with one dropdown SELECT field. The dropdown is populated from a database. What I want is when someone selects a value in the dropdown, in this case a list of products, then detailed information on all of those product types is displayed below the dropdown, maybe in a table. I've got the dropdown piece working, but I can't find anything on how to create a node that has a form plus an area to display data. Any ideas?
Thanks,
Paul
Comments
Sounds like you want a
Sounds like you want a custom node (content) type that as well as the usual fields has your select control/form. Maybe the content construction kit can do this for you http://drupal.org/project/cck. You would also need a suitable CCK field/widget http://drupal.org/project/Modules/category/88 to add the select control to your custom nodes. Possibly you would need to modify the existing one in order to get the AJAX behaviour you have currently got up and running.
gpk
----
www.alexoria.co.uk
gpk
----
www.alexoria.co.uk
View
Thanks gpk for your reply. I started looking at CCK when I found out about Views. A View is exactly what I wanted. A very powerful module.
---------------------------------------------------------------
My drupal site: Vacation-Places
Ah yes, of course, Views
Ah yes, of course, Views ...!
An even more powerful combination = CCK + Views.
Enjoy,
gpk
----
www.alexoria.co.uk
gpk
----
www.alexoria.co.uk