Code for new custom field type