A simple function to make it easier to assign fields to tabs