I am trying to redirect to another form and submit. when next button should be clicked on it should run an agent which runs an agent to update back end document and open another form. somehow agent is not working. on a click on "next" I am calling a javascript function where I call submit function...