Hey guys, hope all is well at GF
I have a question regarding gform_pre_render?
I have dealer form. Which basically you choose your county, and then your dealer.
Dropdown A = Dealer Country
Dropdown B = Dealer Name
I have about 15 countries, and I am using get_terms in the gform_pre_render to list all my countries that I have assigned to a dealer...
OK so the above works perfectly in Dropdown A
Now what I am trying to do in Dropdown B is display all my dealer names.
I have named each dealer custom post-type title with the name of the dealer, and this is what I am pre populating my secondary drop down with...
...and as you can see in line 11, I have a variable in my get_posts array "dealer-country" => $dealerCounty
My question, is it some how posible to get the choice that is made in Dropdown A into my $dealerCounty
variable in my Dropdown B function?
Any tips or help would be much appreciated as my Dropdown B is currently very long, and I need to filter it down by country.
Many Thanks
Josh