• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 491
  • Last Modified:

Form Submit Twice

I have a form that I need to run a test and have it submit twice when the submit button is pressed once.
is there a way to do this?
0
usky1
Asked:
usky1
1 Solution
 
ZvonkoSystems architectCommented:
You can submit the form twice when you change the form target setting.
For example you could first submit the form to a popup and then to the page itself.
Like this:

<form action="process.cfm" target="popup" onSubmit="submitTwice(this)" >

<script>
function submitTwice(theForm){
  theForm.target="popup";
  theForm.submit();
  theForm.target="_self";
  return true;
}
</script>
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now