# "functions" in Bubble... returning a value from reusable element workflow

**URL:** <https://forum.bubble.io/t/functions-in-bubble-returning-a-value-from-reusable-element-workflow/34640>\
**Category:** Questions\
**Created:** [July 30, 2018, 3:29pm UTC](https://forum.bubble.io/t/functions-in-bubble-returning-a-value-from-reusable-element-workflow/34640 "2018-07-30T15:29:32Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![jayy](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@jayy](https://forum.bubble.io/u/jayy)\
**Post date:** [February 25, 2022, 1:52pm UTC](https://forum.bubble.io/t/functions-in-bubble-returning-a-value-from-reusable-element-workflow/34640/5 "2022-02-25T13:52:08Z")

</div>

But custom events don’t have a return value.

We’ll need to use custom states to store those return values.

Is this 100% reliable in terms of dependency? i.e when the custom event exits, the custom states will definitely be populated? I didn’t have a good experience with depending on custom states.

---

_[View the full topic](https://forum.bubble.io/t/functions-in-bubble-returning-a-value-from-reusable-element-workflow/34640)._
