Diagram: using the Form API