I am building a multistep form using ctools, basically following this approach. Now I want the following behaviour:
- user is at step 1
- enters data for step 1
- clicks continue and gets to step 2
- enters data for step 2
- clicks back and gets to step 1
- sees the data he entered previously (works already)
- clicks continue and gets to step 2
- sees the data he entered previously (works not yet)
To show the previously entered data after clicking continue, I simply set $form[$name]['#default_value']
with values from $form_state['values']
(with a detour via ctools object cache). So this works already.
The problem is with clicking back: After clicking back, $form_state['values'] does not contain any entered values. So I don't have the values to populate $form[$name]['#default_value']
and this is my current problem.
So I wonder: How can I send entered values with the back button submit?