Restrict a custom combo box to listed data only

I found this post that solved it for me. Hope it works for you too!