I have two standard drop down fields that I want to dynamically populate with wp_list_categories. The user will select the category in the drop down field and once the form is submitted, It is displayed on a page. I want to display the selected category with its permalink. This possible?
Here is what I go so far
add_filter("gform_field_value_test", "populate_test");
function populate_test(){
$cat = wp_list_categories('orderby=name&exclude=1')
return $cat;
}