# Event "app.record.create.submit.success"

**URL:** <https://forum.kintone.dev/t/event-app-record-create-submit-success/187>\
**Category:** General\
**Created:** [January 15, 2019, 8:25am UTC](https://forum.kintone.dev/t/event-app-record-create-submit-success/187 "2019-01-15T08:25:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [January 15, 2019, 8:25am UTC](https://forum.kintone.dev/t/event-app-record-create-submit-success/187/1 "2019-01-15T08:25:34Z")

</div>

Hello&nbsp;  
I have the following issues:

As usual, when creating a record successfully (when clicking “save” button, which is&nbsp; corresponding&nbsp;“app.record.create.submit.success” event ), the page will be automatically loaded and redirect to the page corresponding “app.record.detail.show” event.

But I need to do something before the page will be redirected?

Is there any way to stop the page from redirecting?

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [January 15, 2019, 5:07pm UTC](https://forum.kintone.dev/t/event-app-record-create-submit-success/187/2 "2019-01-15T17:07:13Z")

</div>

Hello Tom

I’m not quite sure what you are trying to do since the “app.record.create.submit.success” event IS an event before it is redirected to the record detail page so can you not write a process in this event if you are trying to do something before it is redirected to the record detail page?

Ref: [https://developer.kintone.io/hc/en-us/articles/213149077-Record-Create-Event#SaveSubmitEvent](https://developer.kintone.io/hc/en-us/articles/213149077-Record-Create-Event#SaveSubmitEvent)

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [January 16, 2019, 1:12am UTC](https://forum.kintone.dev/t/event-app-record-create-submit-success/187/3 "2019-01-16T01:12:22Z")

</div>

Hello Yuzo

Yes, You’re right. I need to write a process in the event “app.record.create.submit.success”, but the page will be automatically redirected so I can’t do anything&nbsp;

Thanks

Tom

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [January 16, 2019, 3:48pm UTC](https://forum.kintone.dev/t/event-app-record-create-submit-success/187/4 "2019-01-16T15:48:19Z")

</div>

Hey Tom

It will be great if you can explain briefly what you are trying to do, but I feel like the kintone.Promise maybe the answer for you.

Whenever you try to use any asynchronous process such as the kintone.api or the kintone.proxy within any kintone event, the kintone event process completes first so it can’t run the asynchronous process w/o using the synchronous XMLHttpRequest or the kintone.promise. Since there are some issues using the synchronous XMLHttpRequest, kintone recommends using the kintone.Promise, which allows you to run asynchronous process within the event w/o using the synchronous XMLHttpRequest so please check into it.

kintone developer network - Using Promises over Synchronous XHR  
[https://developer.kintone.io/hc/en-us/articles/115007823527-Using-Promises-over-Synchronous-XHR](https://forum.kintone.dev/hc/en-us/articles/115007823527-Using-Promises-over-Synchronous-XHR)

(by the way, I believe you can’t stop the redirect after successful submit)

Again, if this isn’t the thing, can you please explain what you are trying&nbsp; to do?

Thank you
