@CMPaul,
I had the same issue as you and figured this out. You need to do the procedure in this blog post. You need to find the file include/ajax.users.php
as this is the file that handles the ajax requests from the users form. On line 83 there's something similar to the code below:
if (UserForm::getInstance()->getField('phone')) {
UserForm::ensureDynamicDataView();
$filter->add(array('cdata__phone__contains' => $q));
}
I just copy and pasted that code into the line below the phone code and replaced "phone" with my variable name:
if (UserForm::getInstance()->getField('variableName')) {
UserForm::ensureDynamicDataView();
$filter->add(array('cdata__variableName__contains' => $q));
}
That change allowed me to type my custom variable values into the user search modal when creating new tickets and if I closed the modal, it worked from the user line as well. Make sure your custom variable values are at least three characters in length, though. The ajax search will not start looking until you've got three characters.
Note: I was using osTicket 1.15, but the locations of these code items should be pretty close to where these were with older versions of the files.