Passing data when using redirect

chriso0258 27 Aug, 2015
Hello,

I'm using a redirect after a form is completed to go to a form that says their information was saved. I want to pass some information to the new form but I'm not sure how. In the parameter section of the redirect I've tried the following with no success:


state_tag=$form->data[equipment]['state_tag']

and


$form->data['state_tag']=$form->data[equipment]['state_tag']


In both cases when I look at the debugger information on the new form, nothing is being passed. How should I pass data between forms using the redirect?

Thanks,
Chris
GreyHead 28 Aug, 2015
Answer
2 Likes
Hi chriso0258,

You could just add another page in the same form; or use a Display Message action.

Using the Redirect action you need to add data as name=input_name So, in your example it would be
state_tag=equipment.state_tag


If the other form is a ChronoForm then you can also pass data using the Data to Session and Session to Data actions using a session key (a short string id) to link the two together.

Bob
This topic is locked and no more replies can be posted.