How can the search function be added to dropdown fields?