Fix the remove form dynamic form function

Fix the remove field from dynamic form function.

A24Group/Triage#2647