Hi guys, I’m trying to store the user id into a hidden field (something like value=“userid”) so i can use it when i need to submit the from.
I’ve got a autocomplete field which is working fine but together with first and last name it shows also the user id.
Fair enough. What’s not working?
If data contains a user property you could probably just do $("#my-hidden-field").val(data.user); withing the source callback.
I would like to take a chance to ask you something else, when i run thew query to the database i do it in this way:
SELECT user_id, user_first, user_last FROM user_group_join INNER JOIN users ON user_group_join . user_join_id = users . user_id WHERE user_group_join . group_join_id = 1 AND user_group_join . user_join_id NOT LIKE 59 AND users . user_first LIKE ‘%{$term}%’ OR users . user_last LIKE ‘%{$term}%’
I don’t understand why it still shows the user 59 do you have any clue?
Many thanks