Template logic for required and missing fields