Category custom fields

I was wondering if its possible to have custom fields for each listing category and showing them just when the category is selected on post listing.

Editing an attribute, you can assign it to a Category in the section on the right; this attribute will then appear for the selected category only.