# Browser alert - Leave page? Changes may not be saved

**URL:** <https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711>\
**Category:** Support\
**Created:** [May 13, 2024, 10:13am UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711 "2024-05-13T10:13:28Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bfRhap](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bfRhap](https://community.feathery.io/u/bfRhap)\
**Post date:** [May 13, 2024, 10:13am UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/1 "2024-05-13T10:13:28Z")

</div>

All of a sudden my forms are asking for the user to confirm they’re happy to leave the page upon the last step of submitting the form.

Please can you help confirm what is going on? I think Jake has had a look at this before and something was changed for me. Am I doing something wrong?

![image](https://canada1.discourse-cdn.com/flex030/uploads/feathery/original/1X/351ca2b4a9b355808de12178e3d328351e98154d.png)

Sites include:

- [https://therapycareers.co.uk/new-career/form](https://therapycareers.co.uk/new-career/form)
- [https://365training.co.uk/change-careers/form](https://365training.co.uk/change-careers/form)

---

<div class="post-metadata">

**Author:** ![kailash](https://avatars.discourse-cdn.com/v4/letter/k/2bfe46/32.png) [@kailash](https://community.feathery.io/u/kailash)\
**Post date:** [May 15, 2024, 4:02am UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/2 "2024-05-15T04:02:31Z")

</div>

Hello @bfRhap , I am trying to test your forms, but the phone number field is not accepting any test input. Do you have a test input that I can use for the phone number field?

---

<div class="post-metadata">

**Author:** ![bfRhap](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bfRhap](https://community.feathery.io/u/bfRhap)\
**Post date:** [May 15, 2024, 9:38am UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/3 "2024-05-15T09:38:34Z")

</div>

Hi Kailash,

It needs to be a UK Mobile number - so starts 07 and 11 digits long in total.  
07000000000

This should pass validation.  
A postcode should you need it also could be TA13FB.

---

<div class="post-metadata">

**Author:** ![kailash](https://avatars.discourse-cdn.com/v4/letter/k/2bfe46/32.png) [@kailash](https://community.feathery.io/u/kailash)\
**Post date:** [May 15, 2024, 10:32am UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/4 "2024-05-15T10:32:11Z")

</div>

Hi @bfRhap I have tested the therapycareers webpage and the form submission, page navigation and tab closure all happened without any popup. Can you try again and let me know if you are seeing this behvaior still

---

<div class="post-metadata">

**Author:** ![bfRhap](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bfRhap](https://community.feathery.io/u/bfRhap)\
**Post date:** [May 15, 2024, 1:45pm UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/5 "2024-05-15T13:45:36Z")

</div>

Hi Kailash,  
Ok, that’s hopefully meaning not all users are seeing it.

But it still happens for me, would it be based on me being logged into Feathery?  
Or perhaps because I have some cookies/cached from somewhere?

What would make this happen along the journey, do you know what step it happens at?  
I usually submit the form, and the animated gif on the button is spinning for a few seconds.  
Then I see the browser alert box asking if I want to leave.

---

<div class="post-metadata">

**Author:** ![peter](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.feathery.io/peter/32/7_2.png) [@peter](https://community.feathery.io/u/peter)\
**Post date:** [May 15, 2024, 3:57pm UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/6 "2024-05-15T15:57:48Z")

</div>

Do you have logic running when the last submit button is clicked?

---

<div class="post-metadata">

**Author:** ![bfRhap](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bfRhap](https://community.feathery.io/u/bfRhap)\
**Post date:** [May 15, 2024, 10:35pm UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/7 "2024-05-15T22:35:50Z")

</div>

Yes, there is logic being used and then a redirect at the end of the form completion - as far as I can tell the order of things.

Is there likely an API call still ongoing for the validation I am carrying out on Phone and Email?

I’m not quite sure on the ordering or over hang of logic in the process, especially when mixing the settings of the form, with logic on the form and then inline js code too.

---

<div class="post-metadata">

**Author:** ![peter](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.feathery.io/peter/32/7_2.png) [@peter](https://community.feathery.io/u/peter)\
**Post date:** [May 16, 2024, 7:46am UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/8 "2024-05-16T07:46:49Z")

</div>

> [@bfRhap](#):
>
> 07000000000

Are you still seeing this? If so, can you attach a recording of you going through the entire flow? I’m not able to reproduce

---

<div class="post-metadata">

**Author:** ![bfRhap](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bfRhap](https://community.feathery.io/u/bfRhap)\
**Post date:** [June 19, 2024, 4:31pm UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/9 "2024-06-19T16:31:56Z")

</div>

Howdy,

Apologies for not coming back sooner.

I have had someone else experience the same issue and they’re not logged in or associated with the feathery account.  
(This was something I was considering as being the reason I was seeing it)

I wonder if the calls to the validation service I am using are still being run in the promise, and haven’t finished when the function to open the next url comes in and the browser is waiting still?

await Promise.all([  
feathery.http.connect(‘Data 8 - Phone Validation’),  
feathery.http.connect(‘Data 8 - Email Validation’),  
feathery.http.connect(‘Data 8 - Salacious Name’)  
]);

//Rest of code

if (  
nameValidationOutcome.notEquals(‘Invalid’) &&  
emailValidationOutcome.notEquals(‘Invalid’) &&  
phoneValidationOutcome.notEquals(‘Invalid’)  
) {

//Rest of code

await feathery.http.connect(‘AirTable - Brain X Movement Leads Table’);  
feathery.openUrl(thanks\_pg.value, ‘\_self’);

}

How would I best troubleshoot this?

Thanks  
Ben

---

<div class="post-metadata">

**Author:** ![peter](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.feathery.io/peter/32/7_2.png) [@peter](https://community.feathery.io/u/peter)\
**Post date:** [June 19, 2024, 5:21pm UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/10 "2024-06-19T17:21:20Z")

</div>

> [@peter](#):
>
> > [@bfRhap](#):
> >
> > 07000000000

Where is your URL redirect being set from? I don’t see it on the form itself

---

<div class="post-metadata">

**Author:** ![bfRhap](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bfRhap](https://community.feathery.io/u/bfRhap)\
**Post date:** [June 19, 2024, 5:52pm UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/11 "2024-06-19T17:52:08Z")

</div>

In the feathery logic code inside the form - next to integrations tab.

---

<div class="post-metadata">

**Author:** ![peter](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.feathery.io/peter/32/7_2.png) [@peter](https://community.feathery.io/u/peter)\
**Post date:** [June 19, 2024, 10:54pm UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/12 "2024-06-19T22:54:37Z")

</div>

Can you share a screen recording or something? I’m looking at the `365 Training` form rules and do not see the open url logic

---

<div class="post-metadata">

**Author:** ![bfRhap](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bfRhap](https://community.feathery.io/u/bfRhap)\
**Post date:** [June 20, 2024, 6:37am UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/13 "2024-06-20T06:37:40Z")

</div>

Ah sorry this is the location I’m seeing an example of this issue…

[https://brainxmovement.com/assessment](https://brainxmovement.com/assessment)

I do see it on all forms. But this site/form is where someone else has come across the issue.

I’ll capture a screen recording today and share.

Thanks  
Ben

---

<div class="post-metadata">

**Author:** ![peter](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.feathery.io/peter/32/7_2.png) [@peter](https://community.feathery.io/u/peter)\
**Post date:** [June 20, 2024, 3:12pm UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/14 "2024-06-20T15:12:05Z")

</div>

To clarify, I’d like a recording so you can show me where that logic is in the form itself. I’m looking through your form setup and don’t see the open url logic anywhere

---

<div class="post-metadata">

**Author:** ![bfRhap](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bfRhap](https://community.feathery.io/u/bfRhap)\
**Post date:** [June 20, 2024, 3:26pm UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/15 "2024-06-20T15:26:01Z")

</div>

Hi Peter,

Here’s two videos - one on the form and one inside feathery.  
[https://drive.google.com/drive/folders/1q1-803ALCSOU2yu–iZeHrqhfQRjFdSh?usp=sharing](https://drive.google.com/drive/folders/1q1-803ALCSOU2yu--iZeHrqhfQRjFdSh?usp=sharing)

I see an error in the console.log, but have been moving the code around in the feathery code area before now and not seen the console error but had the leave page alert as seen in the videos.

This is happening on all forms for me - and I’d say consistently rather than occasionally.

Thanks  
Ben

---

<div class="post-metadata">

**Author:** ![peter](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.feathery.io/peter/32/7_2.png) [@peter](https://community.feathery.io/u/peter)\
**Post date:** [June 20, 2024, 9:22pm UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/16 "2024-06-20T21:22:37Z")

</div>

we’ve made one more small update on our end and now recommend you prepend feathery.openUrl() with `await`. However, the bigger issue here is that you’re doing this on a rule that runs on submit. You probably should run this on form completion instead (after submit) since redirecting the url during submit will prevent data being saved to feathery and is a reason why the warning is comign up

---

<div class="post-metadata">

**Author:** ![bfRhap](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bfRhap](https://community.feathery.io/u/bfRhap)\
**Post date:** [June 21, 2024, 6:10am UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/17 "2024-06-21T06:10:27Z")

</div>

Thanks for the help, I’ll take a look today.

---

<div class="post-metadata">

**Author:** ![bfRhap](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bfRhap](https://community.feathery.io/u/bfRhap)\
**Post date:** [June 21, 2024, 9:15am UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/18 "2024-06-21T09:15:27Z")

</div>

Hi Peter,

Can’t seem to make this work still - it is having the same problem, although I have split out the openURL to a form completion step and added ‘await’ before it.

Any suggestions? Have I implemented your suggestions correctly?

---

<div class="post-metadata">

**Author:** ![peter](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.feathery.io/peter/32/7_2.png) [@peter](https://community.feathery.io/u/peter)\
**Post date:** [June 21, 2024, 11:09pm UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/19 "2024-06-21T23:09:21Z")

</div>

ok - please try again one more time after 10 minutes, i believe it should be resolved now

---

<div class="post-metadata">

**Author:** ![bfRhap](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bfRhap](https://community.feathery.io/u/bfRhap)\
**Post date:** [June 23, 2024, 2:41pm UTC](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711/20 "2024-06-23T14:41:23Z")

</div>

Is this a change that affects all my forms? I’m conscious it happens across them all not just the BrianX form I shared the video for.

[Next page](https://community.feathery.io/t/browser-alert-leave-page-changes-may-not-be-saved/711.md?page=2)
