There are two modules e.g States and City module related to each other by some relation.
These two modules are also related to Accounts module.
In the Accounts Edit View, when I select the State from States pop up list view, and proceed to select City, what I want is : City pop up list view should only list records related to the selected State.
I am completely unfamiliar with php, but can follow instructions.
Can you help me to achieve similar thing in a custom module where I want the second drop down to be dependent upon the first one.
I need to do exactly the same, but with multiple fields.
I can easily filter the pop up with a single field by following your example, but run into trouble when I try passing multiple fields in an array to initial_filter:
When I add double quote āā, the link is no longer clickable. That is, if I specify a simple one, such as
āinitial_filterā => ā&account_name_advanced=testacctā, it works fine. But, if it becomes āinitial_filterā => ā&account_name_advanced="+this.form.{$fields.account_name.name}.value+"ā, the popup link is no longer clickableā¦