# Pass a parameter from one page to another page

**URL:** <https://community.plotly.com/t/pass-a-parameter-from-one-page-to-another-page/27976>\
**Category:** Dash Python\
**Created:** [August 29, 2019, 5:12pm UTC](https://community.plotly.com/t/pass-a-parameter-from-one-page-to-another-page/27976 "2019-08-29T17:12:03Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![tbillah](https://avatars.discourse-cdn.com/v4/letter/t/d6d6ee/32.png) [@tbillah](https://community.plotly.com/u/tbillah)\
**Post date:** [June 24, 2020, 2:20pm UTC](https://community.plotly.com/t/pass-a-parameter-from-one-page-to-another-page/27976/9 "2020-06-24T14:20:36Z")

</div>

Hi @Emil, thanks for your reply but I think that only holds for single page. Here, we are talking about multiple pages i.e. sharing data between layouts.

This is the challenge we are trying to solve (`page-1-dropdown` and `page-2-content` are parts of different layouts, see @ajeeteshmishra’s code above):

```python
@app.callback(Output('page-2-content', 'children'),
              [Input('page-1-dropdown', 'value')])
def page_2(value):
    return 'You selected "{}"'.format(value)

```

In the tutorials, dash seems to require `Input` and `Output` come from the same layout.

So far @marlon’s [How to pass values between pages in dash](https://community.plotly.com/t/how-to-pass-values-between-pages-in-dash/33739/7) seem to be the only viable option. But I think that is a hack and the code is a little cumbersome. So, I am still looking for a better way to share data between pages.

---

_[View the full topic](https://community.plotly.com/t/pass-a-parameter-from-one-page-to-another-page/27976)._
