redirect to other form+session data

mdma 17 Aug, 2015
hello again,
a redirect from formA to formB with the link
index.php?option=com_chronoforms5&chronoform=formB works
1.)is it intended to link like this? is somekind of sef-url possible?

2.)added
-"data to session" after redirect event in FormA (session key 1234567890)
-"session to data" before HTML(render Form) in onLoad FormB
is the ordering right?
when clicking button to redirect to FormB there seems to be some endless loop or something(ERR_TOO_MANY_REDIRECTS)

Whats my mistake?
GreyHead 17 Aug, 2015
Hi mdma,

You can use a Hidden menu item to create a SEF link - add the form name and event (defaults to load) in the menu item options tab.

The Data to Session needs to be before the ReDirect action or it will never run.

It looks like you have a loop in your form redirection somewhere - I can’t tell where from the info here.

Bob
mdma 17 Aug, 2015
went through all possibilities:
redirect work but no session data in FormB:
FormA setup:
------------
-onLoad
--HTML(renderForm)
--Data to session
-----------
-onSubmit
--Redirect to FormB
-------------

FormB setup:
-onload
--Session to Data
-HTML(render Form)


Thank you for the guidence to SEF-url this is working
GreyHead 17 Aug, 2015
Hi mdma,

You need to move the Data to Session action into the On Submit event of Form A - there is no data to save until the form is submitted.

Bob
mdma 17 Aug, 2015
FormA setup like this gives me the redirect error ;(
------------
-onLoad
--HTML(renderForm)
-----------
-onSubmit
--Data to session
--Redirect to FormB
-------------

i tried different Form methods, absolutely no clue how to solve,
to clearyfy:
data to session saves all the values of the fields of the form in a session file,
session to data fills the values from the file into the same fields of the other form, is this right?

and normally there would be an action url to the full form with a post request, to transfer the field values, wouldnt that be possible to somehow in this kind of scenario?
mdma 17 Aug, 2015
Answer
hello again,

there seemed to be a problem with redirect to sef url
using redirect url like:
index.php?option=com_chronoforms5&chronoform=FormB
instead of
FormB (<-SEF-url causes the error for me)
what i also did was:
-the session time in joomla global config was very high

in data to session action config of form B:

-clear session yes
-i changed the session key (to have a new one)
-overwrite data yes

now it works!!
GreyHead 17 Aug, 2015
1 Likes
Hi mdma,

I also got it to work with the full URL.

Bob
mdma 17 Aug, 2015
thank you for pointing the essential use of d2session und s2data out
that narrowed the trial and error game for me a lot.

this component is really not that easy as it looked to me...lets move on😉
This topic is locked and no more replies can be posted.