# Bubble up variable from helper

**URL:** <https://discuss.emberjs.com/t/bubble-up-variable-from-helper/12710>\
**Category:** Uncategorized\
**Created:** [April 2, 2017, 5:13pm UTC](https://discuss.emberjs.com/t/bubble-up-variable-from-helper/12710 "2017-04-02T17:13:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![frsechet](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/frsechet/32/12517_2.png) [@frsechet](https://discuss.emberjs.com/u/frsechet)\
**Post date:** [April 2, 2017, 5:13pm UTC](https://discuss.emberjs.com/t/bubble-up-variable-from-helper/12710/1 "2017-04-02T17:13:22Z")

</div>

Hi, I’m creating a helper that replaces part of a string with an input. Something like this:

`lorem ipsum %s test` =\> `lorem ipsum _______ test`

Then I would like to use that input’s value in other places in the same component.

Here is my helper:

````auto
import Ember from 'ember';

export function replaceInput(params) {
  let phrase = params[0].replace("%s", "<input type='text' value='xxxxxx'/>");
  return new Ember.String.htmlSafe(phrase);
}

export default Ember.Helper.helper(replaceInput);
```
What I need is to be able to type something into the input and retrieve that value as I go.
How would I best go about that?
Thanks for your help!
````
