dropdown country city

Questionsdropdown country city
Massimo Gagliardi asked 1 year ago

In the example “dropdown country city” when choosing a country and then a state, when deselecting the country the state dropdown list and city dropdown list filters remain empty.

There is a solution?

Tnks in advance

Massimo Gagliardi

1 Answers
Abu Ghufran Staff answered 1 year ago

Hello,

This is as expected. When there is no country selected, there will be no state or city as both are dependent on country. Ideally they should be hidden if country is not selected and only shown when it’s selected.

For that you can uncomment these lines:

https://www.gridphp.com/demo/demos/appearance/dropdown-country-city.phps

$grid["add_options"]["afterShowForm"] = "function(){ setup_fields(); }";
$grid["edit_options"]["afterShowForm"] = "function(){ setup_fields(); }";
_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

11 + 3 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 1 / 5. Vote count: 1

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?