Hi, I have a multipage form and I need that given a certain response, one page (with fields) is shown rather than another (with other fields). I can't implement it in any way with event listeners and event triggers.
Can you help me?
Can you help me?
Hi Marianna
You should use the PHP action with the "Events" behavior enabled, an example is shown in this post:
https://www.chronoengine.com/forums/topics/view/110982/functions-not-found-in-cf8#p402772
But in your situation you should add different fields based on the event value
You should use the PHP action with the "Events" behavior enabled, an example is shown in this post:
https://www.chronoengine.com/forums/topics/view/110982/functions-not-found-in-cf8#p402772
But in your situation you should add different fields based on the event value
Ok thanks, I set the code but how can I go to one page rather than another?
If it is true, for example, it must go to page 12, if it is false, it must go to page 16.
How can I implement it?
If it is true, for example, it must go to page 12, if it is false, it must go to page 16.
How can I implement it?
I have solved it for now by creating two forms and using that script suggested by you I do a redirect to the new form. But now I have the problem of taking the data from the starting form and bringing it into the form to which I redirect so that I can then send all the results via email.
Hi marianna
I do not think this solution is good and you will most probably have other issues, I can add a new feature for page switching, what is your deadline for this to work ?
I do not think this solution is good and you will most probably have other issues, I can add a new feature for page switching, what is your deadline for this to work ?
Hi Max, I'm quite late with this work precisely because of this problem which I have currently resolved by eliminating the issue of the redirect to another form but, on the page where the responses must be dynamic, I simulated the multi-page "display" by playing with contaniner/event listener/event triggers and I have to say it works pretty well.
Now I'm trying to solve another problem. When the user finishes filling out the form and is redirected to the first page of the multipage form, the data in the various fields persists and if they make a new submission despite changing the data, the data filled out at the first access is sent back via email. I'm going crazy trying to get them to empty...Do you have any suggestions to fix this problem?
Now I'm trying to solve another problem. When the user finishes filling out the form and is redirected to the first page of the multipage form, the data in the various fields persists and if they make a new submission despite changing the data, the data filled out at the first access is sent back via email. I'm going crazy trying to get them to empty...Do you have any suggestions to fix this problem?
you should not redirect to the first, the form must complete to reset the session data
You may display a link at the last page "submit" to the first page, or do a "delayed redirect", but a direct redirect will cause problems
You may display a link at the last page "submit" to the first page, or do a "delayed redirect", but a direct redirect will cause problems
Once the form is completed I send users to the home page where there is the first page of the multipage form.
So what do you suggest I do?
So what do you suggest I do?
You need to login to be able to post a reply.