Need help with script

Need help with script

Hi,

I need a script for the requester confirm that certain things are placed right, when i first tried it executed twice, so i searched for a similar topic on the forum and i found it but now it dont stop the request submission if the requester press cancel

if ($CS.isFormSubmit())
{
  var x = confirm("É um teste?");
  if (x === false){ alert("Refazer"); $CS.stopFormSubmission();}
  else {alert("Tá bala");}
     

                  New to ADSelfService Plus?