FormTrigger refactored to CodeBlock