Display results into the same screen?

takisd 13 Nov, 2012
Hi,

I would like to ask the following:
I have a form with some parameters and in submit I display the results. But the screen is cleared and the result appeared in a new form.
Is it possible to have the previous form always visible in the screen and in every submit with different parameters to display the results under that form?

I appreciate your help
Takis
GreyHead 13 Nov, 2012
Hi Takis,

I'm sorry I don't understand your question :-(

Bob
takisd 13 Nov, 2012
Hi Bob,
What I'm trying to say is this:
The form is display with some fields on. When the user press submit, execute the "on submit" event where runs a php query and display the results.
I would like to display these results under the previous form.

I suppose is clear now.
Takis
GreyHead 14 Nov, 2012
Hi Takis,

You can use the Show Form action to redisplay the form.

You can use the 'Data to Session' in the On Submit event of the form; and the 'Session to Data' action in the On Load event to reload it. Then you can use a Thank You message action, or a Custom Element element to display the data as you need it.

Bob
takisd 14 Nov, 2012
Hi Bob,

Thank you for your answer. As always its working.
1) If I drop an "Show Form action" to "on submit" I have the results not under, but above the form.
2) Can you please explain in more details the second solution with Data Sessions?
GreyHead 15 Nov, 2012
Hi takisd,

I think it just depends on the order of the actions and events in your form.

Please take a Form Backup using the icon in the Forms Manager and post it here (as a zipped file) or PM or email it to me and I'll take a closer look.

Bob
takisd 15 Nov, 2012
Hi Bob,

I send you a PM.

Thanks
Takis
GreyHead 15 Nov, 2012
Hi Takis,

There is no 'Show Form' action in your form.

Bob
takisd 15 Nov, 2012
Hi Bob,

You have right, I just used the "show html" action.
Now the results display normaly under the form, but only when i use the "Load Form". In "Redirect to form" nothing is displaying and seems like to re-execute the form losing the results.

The URL is not SEF any more. How can I use the form url that is actualy SEF?
example: form URL: /offer-list-all-admins
result URL: /offer-list-all-admins?chronoform=customer_offer_list-all&event=submit


Best Regards
Takis
GreyHead 18 Nov, 2012
Hi Taksid,

Now the results display normaly under the form, but only when i use the "Load Form". In "Redirect to form" nothing is displaying and seems like to re-execute the form losing the results.

Sorry I still don't understand what you are doing here.

You should be able to use a SEF URL for the form using a menu item (or a custom SEF extension). The &event=submit will probably still be added to the action URL of the form.

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