# Pass data beween state view in wizard?

**URL:** https://discuss.tryton.org/t/pass-data-beween-state-view-in-wizard/4076
**Category:** Developer
**Created:** [April 18, 2021, 6:40am UTC](https://discuss.tryton.org/t/pass-data-beween-state-view-in-wizard/4076 "2021-04-18T06:40:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![deathrake](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/d/b487fb/32.png) [@deathrake](https://discuss.tryton.org/u/deathrake)
#### Post date: [April 18, 2021, 6:40am UTC](https://discuss.tryton.org/t/pass-data-beween-state-view-in-wizard/4076/1 "2021-04-18T06:40:29Z")

</div>

Hey

i am trying to fetch data via http request and show it on next state view ?

Regards

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [April 18, 2021, 3:39pm UTC](https://discuss.tryton.org/t/pass-data-beween-state-view-in-wizard/4076/2 "2021-04-18T15:39:14Z")

</div>

You must probably fetch the data when showing the view in the `default_<state>` method.

---

<div class="post-metadata">

### Author: ![deathrake](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/d/b487fb/32.png) [@deathrake](https://discuss.tryton.org/u/deathrake)
#### Post date: [April 19, 2021, 4:51am UTC](https://discuss.tryton.org/t/pass-data-beween-state-view-in-wizard/4076/3 "2021-04-19T04:51:55Z")

</div>

Thanks a lot but how can i get the data from the input field in stateview like some strings

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [April 19, 2021, 6:39am UTC](https://discuss.tryton.org/t/pass-data-beween-state-view-in-wizard/4076/4 "2021-04-19T06:39:51Z")

</div>

You can get the value of any field on the stateview on the server side by using:

`self.<state_name>.<field_name>`

You should replace:

- `state_name`: With the name of the StateView you have in your wizard
- `field_name`: The name of the field that you want to get.

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [May 19, 2021, 6:40am UTC](https://discuss.tryton.org/t/pass-data-beween-state-view-in-wizard/4076/5 "2021-05-19T06:40:03Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
