Dynamic Select Fields

I have a recursive relationship in a table.
The table name is topics and each topic can have children and they can have their children etc.
I want the form fist show the select with options of topics that have parent_id = null.
Once selected I want another select to appear with the options that are children of selected.
And repeat this if the selected option has children until the selected item doesnt have any children.
Was this page helpful?