# Trigger Workflow 'Before Page Load' when returning from Stripe?

**URL:** <https://community.weweb.io/t/trigger-workflow-before-page-load-when-returning-from-stripe/5044>\
**Category:** Ask us anything\
**Created:** [October 25, 2023, 4:03am UTC](https://community.weweb.io/t/trigger-workflow-before-page-load-when-returning-from-stripe/5044 "2023-10-25T04:03:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dorian](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorian/32/13183_2.png) [@Dorian](https://community.weweb.io/u/Dorian)\
**Post date:** [October 25, 2023, 4:03am UTC](https://community.weweb.io/t/trigger-workflow-before-page-load-when-returning-from-stripe/5044/1 "2023-10-25T04:03:38Z")

</div>

I have a workflow that is running ‘on page load’ on a page that is displayed on return from Stripe. That workflow determines which elements to display on the page based on what action the user has taken at Stripe. The issue I am having is that the page is being displayed with its default elements shown and then is being updated based on the ‘on page load’ workflow, which I don’t want. I don’t want the user to see the page load then update - I want the workflow to completely run before the page loads and for the correct elements to be displayed on page load.

How can I achieve this? There is no ‘before page load’ workflow trigger. And I cannot trigger the workflow from Stripe obviously. Thoughts? Thanks!

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [October 25, 2023, 6:20am UTC](https://community.weweb.io/t/trigger-workflow-before-page-load-when-returning-from-stripe/5044/2 "2023-10-25T06:20:16Z")

</div>

you can try with hiding everything by default and set what to show using the workflow

---

<div class="post-metadata">

**Author:** ![Dorian](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorian/32/13183_2.png) [@Dorian](https://community.weweb.io/u/Dorian)\
**Post date:** [October 25, 2023, 6:43am UTC](https://community.weweb.io/t/trigger-workflow-before-page-load-when-returning-from-stripe/5044/3 "2023-10-25T06:43:43Z")

</div>

Good idea thanks @dorilama will try it tomorrow.
