New DynamicForm function

New DynamicForm function

issue #2244