# Random string changes during action flows

**URL:** <https://forum.bubble.io/t/random-string-changes-during-action-flows/9843>\
**Category:** Need help\
**Created:** [January 24, 2017, 1:38pm UTC](https://forum.bubble.io/t/random-string-changes-during-action-flows/9843 "2017-01-24T13:38:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas.schijf](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/thomas.schijf/32/7387_2.png) [@thomas.schijf](https://forum.bubble.io/u/thomas.schijf)\
**Post date:** [January 24, 2017, 1:38pm UTC](https://forum.bubble.io/t/random-string-changes-during-action-flows/9843/1 "2017-01-24T13:38:11Z")

</div>

Hi,

I created an action that generates a 4 digit random string. This works fine, except, when I want to display this random number in an input field (by using search for id in URL in the next action) it shows a complete different number (I double checked this method, it works for non-random values, and when using ‘results from previous step’ it shows similar behaviour). How to prevent Bubble from re-randomize this number during an action-flow?

thanks in advance.

 ![](https://us1.discourse-cdn.com/bubble/original/2X/0/03abdec22e0c1a481336c215a54006c7bcdb1334.png)

 ![](https://us1.discourse-cdn.com/bubble/original/2X/d/d705b38d118a0ab186f9a643036eeff356810b5c.png)

 ![](https://us1.discourse-cdn.com/bubble/original/2X/6/601d843c1a580197aeb57da2e84001d2de23de5e.png)

 ![](https://us1.discourse-cdn.com/bubble/original/2X/1/1b3a4d3aad28f39a74ff424e4900c1c639aa7b81.png)

---

<div class="post-metadata">

**Author:** ![AliFarahat](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/alifarahat/32/189604_2.png) [@AliFarahat](https://forum.bubble.io/u/AliFarahat)\
**Post date:** [January 24, 2017, 2:05pm UTC](https://forum.bubble.io/t/random-string-changes-during-action-flows/9843/2 "2017-01-24T14:05:36Z")

</div>

Just display the results of the first workflow

---

<div class="post-metadata">

**Author:** ![thomas.schijf](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/thomas.schijf/32/7387_2.png) [@thomas.schijf](https://forum.bubble.io/u/thomas.schijf)\
**Post date:** [January 24, 2017, 2:20pm UTC](https://forum.bubble.io/t/random-string-changes-during-action-flows/9843/3 "2017-01-24T14:20:24Z")

</div>

unfortunately this doesn’t solve the issue ☹

---

<div class="post-metadata">

**Author:** ![romanmg](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/romanmg/32/237672_2.png) [@romanmg](https://forum.bubble.io/u/romanmg)\
**Post date:** [January 24, 2017, 2:52pm UTC](https://forum.bubble.io/t/random-string-changes-during-action-flows/9843/4 "2017-01-24T14:52:58Z")

</div>

The make a change to Thing search - do you have the same constraint there? Just making sure you’re modifying the correct thing.

---

<div class="post-metadata">

**Author:** ![thomas.schijf](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/thomas.schijf/32/7387_2.png) [@thomas.schijf](https://forum.bubble.io/u/thomas.schijf)\
**Post date:** [January 24, 2017, 3:21pm UTC](https://forum.bubble.io/t/random-string-changes-during-action-flows/9843/5 "2017-01-24T15:21:57Z")

</div>

The verification\_code datatype is text. The random string can’t be formatted as text.

 ![](https://us1.discourse-cdn.com/bubble/original/2X/3/30f3f45a83426759ec868a27bd32270cbde18969.png)

db stores: 2684  
my OneSignal push notification says: 0796

---

<div class="post-metadata">

**Author:** ![thomas.schijf](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/thomas.schijf/32/7387_2.png) [@thomas.schijf](https://forum.bubble.io/u/thomas.schijf)\
**Post date:** [January 24, 2017, 3:37pm UTC](https://forum.bubble.io/t/random-string-changes-during-action-flows/9843/6 "2017-01-24T15:37:39Z")

</div>

Allright, I solved it,

Add a data update action where code=code and refer to the results of this step. Probably the actions are to fast for the random string that is being stored in the database, it will work on this way.

 ![](https://us1.discourse-cdn.com/bubble/original/2X/4/4118b809521e9c73332841a8501bf80c383950b4.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [April 4, 2017, 1:38pm UTC](https://forum.bubble.io/t/random-string-changes-during-action-flows/9843/7 "2017-04-04T13:38:26Z")

</div>

Closed on April 4, 2017, 1:38pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
