determine required fields for widget