set hidden field with category IDs