thomas2340
Posts: 55
|
Posted: 07/14/2012, 9:12 PM |
|
hi,
i have two seperate forms on one page called "activity" and "activity_follow".
on my first form (activity) i have a input field called person with a value for example 1001.
on my second form (activity_follow) which is empty, i want to get the value from the first form from the field person.
in the Default Value field of person in the form activity_follow i tried:
CCGetParam($activity->person, "")
i tried also the before show event, but it doesnt work.
Has anyone an idea ?
|
|
|
djgjohn
Posts: 52
|
Posted: 07/17/2012, 4:37 PM |
|
I understand you are submitting the first form, then wanting to capture the submitted value in the second form after submit.
My way of doing it would be to save the submitted value in the session on button click in the first form. Then pick it up in the second form before show.
Add Onclick Server-side event to first form submit button: CCSetSession("person",CCGetParam("person"));
In second form Before Show person:
$Component->SetValue(CCGetSession("person",""));
|
|
|
|
|
|
|
|