Answers.Body: <p>I believe you are you using Stripe payment processor extension as one of the payment gateway. There is a known issue reported by a user facing similar problem and have been issues for other users also. As mentioned in info.xml Stripe extension supports till 5.0 and might have not tested fully for 5.3. The only solution I would give is to upgrade stripe if you haven't to 5.0 or from <a href="https://lab.civicrm.org/extensions/stripe" rel="nofollow noreferrer">https://lab.civicrm.org/extensions/stripe</a> or wait until some one from Maintainer fixes the problem.</p>
  
  <blockquote>
    <p>You can try if its a stripe problem by disabling the extension and
    submitting the form.</p>
  </blockquote>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-15T10:33:45.480Z
Answers.Text: Hmmm good to know. I'm currently running the 5.0 version (latest) offered on the web UI installer.
Answers.UserDisplayName: minbori
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-10-15T09:59:46.290Z
Answers.LastActivityDate: 2018-10-15T09:59:46.290Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I have an odd problem with my CiviEvent registration.</p>
  
  <p>When a user fills out a registration form and selects the "Pay later" payment option, on clicking "Continue" the browser throws an "are you sure you want to leave this page" message. (Everything works if the user then clicks "OK", it's just confusing to the user to see a message "you may lose any changes on this page".)  If they choose the online payment option and fill out the billing information, "Continue" properly takes them to the next confirmation page.</p>
  
  <p>The only other question I've found that discusses this is </p>
  
  <p><a href="https://civicrm.stackexchange.com/questions/7087/how-do-i-suppress-the-are-you-sure-you-want-to-leave-this-page-popup-from-cont">How do I suppress the &quot;are you sure you want to leave this page&quot; popup from contribution page</a></p>
  
  <p>and it seems I can disable the message by manipulating the onbeforeunload JS function (which I will try) but I'd really like to know what the core problem is instead of just putting a band-aid on it :-)</p>
  
  <p>System deets: Joomla 3.8.12, CiviCRM 5.3.1</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-15T09:11:10.807Z
Comments.Text: Are you using stripe payment method?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-15T09:31:13.593Z
Comments.Text: So, commenting out the onbeforeunload function does indeed suppress this message.  However, i'm still not sure why changing the payment option would trigger this message.
Comments.UserDisplayName: minbori
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-15T09:31:31.943Z
Comments.Text: Yes I am Pradeep! Does that have something to do with it?
Comments.UserDisplayName: minbori
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-13T21:37:14.827Z
Comments.Text: We are seeing this issue with Authorize.net as-well
Comments.UserDisplayName: Yossi
Tags: <civievent><registration><paylater>
Title: CiviEvent: selecting "Pay later" option causes the browser to show "are you sure you want to leave this site"? message
ThreadText: # CiviEvent: selecting "Pay later" option causes the browser to show "are you sure you want to leave this site"? message
  
  (Asked by: username_0 on 2018-10-15)
  
  I have an odd problem with my CiviEvent registration.
  
  When a user fills out a registration form and selects the "Pay later" payment option, on clicking "Continue" the browser throws an "are you sure you want to leave this page" message. (Everything works if the user then clicks "OK", it's just confusing to the user to see a message "you may lose any changes on this page".) If they choose the online payment option and fill out the billing information, "Continue" properly takes them to the next confirmation page.
  
  The only other question I've found that discusses this is
  
  [How do I suppress the "are you sure you want to leave this page" popup from contribution page](https://civicrm.stackexchange.com/questions/7087/how-do-i-suppress-the-are-you-sure-you-want-to-leave-this-page-popup-from-cont)
  
  and it seems I can disable the message by manipulating the onbeforeunload JS function (which I will try) but I'd really like to know what the core problem is instead of just putting a band-aid on it :-)
  
  System deets: Joomla 3.8.12, CiviCRM 5.3.1
  
  **Tags:** civievent, registration, paylater
  
  > **Comments:**
  > **username_1**: Are you using stripe payment method?  
  > **username_0**: So, commenting out the onbeforeunload function does indeed suppress this message.  However, i'm still not sure why changing the payment option would trigger this message.  
  > **username_0**: Yes I am Pradeep! Does that have something to do with it?  
  > **username_2**: We are seeing this issue with Authorize.net as-well  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-10-15. Score: 1 | Accepted answer
  
  I believe you are you using Stripe payment processor extension as one of the payment gateway. There is a known issue reported by a user facing similar problem and have been issues for other users also. As mentioned in info.xml Stripe extension supports till 5.0 and might have not tested fully for 5.3. The only solution I would give is to upgrade stripe if you haven't to 5.0 or from <https://lab.civicrm.org/extensions/stripe> or wait until some one from Maintainer fixes the problem.
  
  > You can try if its a stripe problem by disabling the extension and
  > submitting the form.
  
  Pradeep
  
  > **Comments:**
  > **username_0**: Hmmm good to know. I'm currently running the 5.0 version (latest) offered on the web UI installer.  
  
  ---
  
  