Conditional logic for fields within widgets