Problem With Dependant Dropdown lists

QuestionsProblem With Dependant Dropdown lists
Akhlad asked 6 years ago

for example country and city

when you open the add dialog
Initially before you select the country the city drop down contains all the cities of all the world and the first country is already selected by default

this problem is also present in the demo provided with the latest version

is there a way to fix this?

can the city be initially hidden in the add / edit dialogs until you first select a country?

1 Answers
Abu Ghufran answered 6 years ago

For initial blank value in country dropdown, You can append ":;" before $str (values of dropdown) (line 42)


For hiding column,

I've added afterShowForm event in above link example, which connects to setup_fields() function where you can hide / show dependent dropdowns. (line 112, 158)

Your Answer

5 + 0 =

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 0 / 5. Vote count: 0

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?