const apiRedirectUrl = redirectUrl + '&sessionToken=' + response.sessionToken; const form = document.createElement('form'); form.method = 'POST'; form.action = apiRedirectUrl; document.body.appendChild(form); console.log('calling submit');form.submit(); document.body.removeChild(form);
I want to submit the dynamic form while onSubmit.
based on the action want to redirect.`
New contributor
Mayank Jha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.