function ajax_example_dependent_dropdown_callback
Selects just the second dropdown to be returned for re-rendering.
Since the controlling logic for populating the form is in the form builder function, all we do here is select the element and return it to be updated.
Return value
array Renderable array (the second dropdown)
Related topics
1 string reference to 'ajax_example_dependent_dropdown_callback'
- ajax_example_dependent_dropdown in ajax_example/
ajax_example.module - AJAX-based dropdown example form.
File
-
ajax_example/
ajax_example.module, line 614
Code
function ajax_example_dependent_dropdown_callback($form, $form_state) {
return $form['dropdown_second'];
}