Clear attribute field if attribute_type is changed