# How should I trigger a particular block only the very first time the screen is opened?

**URL:** <https://community.thunkable.com/t/how-should-i-trigger-a-particular-block-only-the-very-first-time-the-screen-is-opened/101882>\
**Category:** Questions about Thunkable X\
**Created:** [June 11, 2019, 5:09pm UTC](https://community.thunkable.com/t/how-should-i-trigger-a-particular-block-only-the-very-first-time-the-screen-is-opened/101882 "2019-06-11T17:09:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kartik\_old](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik_old/32/28305_2.png) [@kartik\_old](https://community.thunkable.com/u/kartik_old)\
**Post date:** [June 11, 2019, 5:09pm UTC](https://community.thunkable.com/t/how-should-i-trigger-a-particular-block-only-the-very-first-time-the-screen-is-opened/101882/1 "2019-06-11T17:09:35Z")

</div>

Hello,  
I have a **Pay** Screen in my app.  
What I want to do is, I want to open Chrome with my payment link(only when the very first time the app is opened) & the second time (when the user presses back from Chrome and comes back to my app),  
I want the label to go : Succesfull Transaction! and after 2 sec., open my Menu screen.  
How can I achieve this?

Thanks,  
Kartik

---

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [June 11, 2019, 6:01pm UTC](https://community.thunkable.com/t/how-should-i-trigger-a-particular-block-only-the-very-first-time-the-screen-is-opened/101882/2 "2019-06-11T18:01:52Z")

</div>

You have the “when Screen1 starts” event that could be used for this. And if you are unsure that it may be a one time only thing, it could check for a value that it sets in a permanent record, like the Local Storage.  
If the value is there (let’s say, for argument sake, that you call it ‘seen\_already’) and that its value is TRUE, then you skip triggering the block. Otherwise, you trigger that block and make ‘seen\_already’ to TRUE.

---

<div class="post-metadata">

**Author:** ![kartik\_old](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik_old/32/28305_2.png) [@kartik\_old](https://community.thunkable.com/u/kartik_old)\
**Post date:** [June 11, 2019, 6:34pm UTC](https://community.thunkable.com/t/how-should-i-trigger-a-particular-block-only-the-very-first-time-the-screen-is-opened/101882/3 "2019-06-11T18:34:37Z")

</div>

Thanks for Reply, @CBVG…

Your Idea seems right to me…Could you provide Sample blocks as well (if possible, i don’t want to bother you…) It would be helpful for me 😄

Thanks 😀

---

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [June 11, 2019, 6:39pm UTC](https://community.thunkable.com/t/how-should-i-trigger-a-particular-block-only-the-very-first-time-the-screen-is-opened/101882/4 "2019-06-11T18:39:44Z")

</div>

No. I do not have anything of that sort right now, I would have to program them from scratch, which would take as much time for me as it would for you.  
And that is particularly true since I am still on Classic owing to X not having the canvas and webview string that I need.

---

<div class="post-metadata">

**Author:** ![kartik\_old](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik_old/32/28305_2.png) [@kartik\_old](https://community.thunkable.com/u/kartik_old)\
**Post date:** [June 12, 2019, 3:52am UTC](https://community.thunkable.com/t/how-should-i-trigger-a-particular-block-only-the-very-first-time-the-screen-is-opened/101882/5 "2019-06-12T03:52:07Z")

</div>

Thanks 😄  
I am closing the topic now.

Thanks again!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:13pm UTC](https://community.thunkable.com/t/how-should-i-trigger-a-particular-block-only-the-very-first-time-the-screen-is-opened/101882/6 "2024-11-08T12:13:32Z")

</div>


