Drupal View as a form item?

359 Views Asked by At

I have been googling for this quite a long time and I kept finding result about how to embed forms into the Views. And I need the exact oposite of this.

I need multiselect within a form. Items in this multiselect come from a View and I need the option to filter them as well. I need the ability display any field in that multiselect, so it has to be really fancy, jQuery/AJAX driven. Have you ever heard of anything like this? Thanks a lot.

Peter

2

There are 2 best solutions below

1
On

I might be able to help but I need a little more info:

Which version of Drupal are you using?

What is the form? Is it a create node form, or something else?

What are the items you are selecting from? Are they nodes, or something else?

1
On

Depending on the type of information you're trying to allow users to select, you can use a node reference or user reference field and provide a view to that field that will generate the options to select.

So, if you want the form to allow people to select users: create a view that is a list of users, create a user reference field in that content type and select the new view as the available options.