Is it possible to add field from block into contextual filter?

There is a custom block listed on front page containing three drop down select list fields depending to one another.

  • First field contains taxonomy parent term.
  • Second field contains child term depends on above selected value.

I also have another block of view showing all the node titles having selected taxonomy term. Now my problem is that how can I add two fields(parent & child term fields) from first block as contextual filter in view. Note that first block is a custom block developed in a custom module while the second block is a block in views. So how is it possible? Anyone help?

  • possible duplicate of call external form in ajax callback – Geoff Jun 24 '15 at 14:54
  • @Geoff this is not duplicate, because in your suggested question both the blocks were developed in a custom module and there was a problem in ajax callback. But in this question one block in a custom module while other block in a views and problem here is to add contextual filter into views. – WaQaR Ali Jun 25 '15 at 7:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.