I am using Form Builder to create an option that is an organization looking like this:
$ form-> = 'Gtc: mediawiki.com =' gtc: mediawiki-xid = "gtc: mediawiki-xid =" gtc: mediawiki-xid = "gtc: mediawiki-xid =" gtc: suffix = "" , 'Property' = & gt; Use 'name', 'query_builder' = & gt; function (EntityRepository $ er) ($ option) {return $ er-> createQueryBuilder ('item') - & gt; LeftJoin ('Item.userItems', 'userItem') -> where ('userItem.user ='. Option ['attr'] ['id']) - & gt; orderBy ('item.name' 'ASC');}, 'Attr' = & gt; array ('class' => 'form-control',),));
But I'm using jquery to change the contents of the dropdown, so I need to change the verification for the field, how can I find out that in this form Value is valid for all the elements in the items table and not only one that is linked to my user id which is used in the query?
This is necessary for my attitude because I have a second dropdown where the user can define that he wants to see the item in his list, other lists or all items
I already take it Have a look but I still do not really get it, how I can use eventListener to get the desired results.
If someone can give me a useful signal, then I would appreciate it very much.
Comments
Post a Comment