Yes you're right I didn't explain to you all my scenario.
My scenario is this
I want to create a Query Field with this query:
SELECT a.*, b.firstname, b.lastname, c.username FROM `#__comprofiler_views` AS a
LEFT JOIN `#__comprofiler` AS b ON b.id = a.profile_id
LEFT JOIN `#__users` AS c ON c.id = a.viewer_id
WHERE `profile_id` [ here goes the user_id from a select drop down]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I want that a Query Drop Down Field passes a user_id selected by the user in the front end to this query
how can I do it?
I read your article
www.joomlapolis.com/documentation/345-cb-query-field/tutorials/18533-configuring-dynamic-usa-state-city-zip-fields-with-cb-query-field-plugin
but this passes dynamically variable between two or more Drop Down Query Field, I need to pass a variable from 1 - Drop Down Query Field --> to Query Field
Thank
Nancy