createForm, dyanmic input type: Pass in context