How to config the form template to display confirmation text

Author Message

Eason Huang

Friday 26 June 2009 12:45:55 am

In the article "How to create ez publish forms", the URL is :

http://ez.no/developer/articles/how_to_create_ez_publish_forms/form_configuration_settings

the paragraph as follow:

[DisplaySettings] block

The DisplayList setting specifies the page that should be loaded after the form is submitted. There are three main options:

* Result – Displays a "result" template (such as a poll result or a confirmation page), typically located in
[design_extension]/templates/content/collectedinfo/. This is the option we will choose for our membership application form.
* URL – Load a specific URL.
* Node – Redirect back to the original content node. For example, a user filling in a form would be redirected back to the page containing the blank form. In this case, you can configure the form template to display some confirmation text above the blank form to acknowledge the submission.

My question is that :How to configure the form template to display some confirmation text above the blank form to acknowledge the submission?

Please give me some advice, thanks advance!

skype:hyslx27

hyslx27@gmail.com

Heath

Friday 26 June 2009 1:23:50 am

I recently ran into an essentially similar situation. Normally I would suggest using view parameters as a simple way to do this in a template. But that usually only works if you can simply append before redirection this additional parameter.

In this case it doesn't sounds like that is an option. In fact the option it sounds like you want isn't really provided for, which is some combination of node and result settings functionality. Which isn't that great for more folks than just yourself but is the way it is ...

But in this instance because of builtin limitations (ie: this feature is not well provided for) the best I think you can do is use the setting DisplaySettings:DisplayList=Result which in itself provides for the submission confirmation feature (albeit in a rather inflexible way). If you must have submission confirmation.

When I ran into this issue it turned out submission confirmation was not required so used the node setting.

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

kracker (the)

Friday 26 June 2009 1:35:20 am

You could also in addition to using the Result setting,
make massive changes to the template used with the
result setting (as described above) to simply display
the -same- form with a more brief summery of the collected information.

This is instead (going the extra mile) is what I would do to
provide both what you need with default ez settings and template overrides.

I may or may not use a template include to duplicate the input form depending on the complexity of the form template. (It's really not that hard to include templates in other templates and pass variables albeit limited in what functionality can be implemented only this way) ..

I hope this helps.

<i>Cheers,
//kracker

Are you an autobot?</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Eason Huang

Friday 26 June 2009 3:46:08 am

Thanks , All!

Eason

skype:hyslx27

hyslx27@gmail.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.