You need to provide a URL so we can tell you what's wrong with your code/config.
This is usually handled in the form definition.
Check the form definition step 2: Form Settings > Settings. On the bottom there is a value for 'Follow up with" , Verify this is the URL you want rather than stay on page.
this was resolved
was actually a conflicting script on the external page