Function to create field names