Multi-page forms: best practices?

Author Message

Chris Detmer

Monday 12 November 2007 1:42:31 pm

I'm building a large form that consists of multiple pages of fields which a user will step through. There will also be an option to save the current information as a draft and complete it at a later time. Currently I am loading all the pages in separate divs, hiding all but the first until the user clicks "continue", and submitting the form all at once at the end.

I'm looking for suggestions on best practices, specifically in dealing with session information, drafts and recalling the saved information. Any insight would be helpful.

- Chris

gabriele francescotto

Monday 12 November 2007 11:04:35 pm

I had several times the need to create long surveys; the approch I followed was the <i>divide et impera</i>, dividing the survey in different modules, and creating different ez objects per each of them.
I also created a folder (unique for all the users), customizing the template to guide the user in the different actions I need from him, and in particular:
- create new objects
- modifing existing objects

using ez roles, you can control perfectly the right of the users in this folder.

you can see a shot of an application I made recently:
http://up.opencontent.it/powos.jpg

www.opencontent.it
via Verdi 19, 38100 Trento

Karl Latiss

Monday 19 November 2007 9:22:21 pm

You may also want to check out form builder by designIT.

http://www.designit.com.au/solutions/ez_publish_form_builder

Atvert Systems
http://www.atvert.com.au

/dev/null

Tuesday 20 November 2007 6:54:59 am

Or support the Open Funding's eZ Survey project, <i>http://ez.no/developer/open_funding/open_funding_projects/ez_survey#msg152783</i>

They seem to have the very best ideas when it comes to some of these ...
another related if not similar thread in the forum is <i>http://ez.no/developer/forum/setup_design/content_class_attribute_description</i>

<i>/dev/null</i>

eZpedia community documentation project: http://ezpedia.org

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

eZ debug

Timing: Jan 18 2025 15:12:07
Script start
Timing: Jan 18 2025 15:12:07
Module start 'layout'
Timing: Jan 18 2025 15:12:07
Module start 'content'
Timing: Jan 18 2025 15:12:07
Module end 'content'
Timing: Jan 18 2025 15:12:07
Script end

Main resources:

Total runtime0.6554 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.9063152.6250
Module start 'layout' 0.00510.0019 740.531339.4453
Module start 'content' 0.00700.6470 779.9766624.9219
Module end 'content' 0.65400.0014 1,404.898412.1563
Script end 0.6554  1,417.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4659160.0002
Check MTime0.00130.1973160.0001
Mysql Total
Database connection0.00100.155910.0010
Mysqli_queries0.598191.2501640.0093
Looping result0.00060.0966620.0000
Template Total0.631796.420.3159
Template load0.00190.295120.0010
Template processing0.629896.086920.3149
Template load and register function0.00030.048210.0003
states
state_id_array0.00080.115210.0008
state_identifier_array0.00140.211820.0007
Override
Cache load0.00160.2442250.0001
Sytem overhead
Fetch class attribute can translate value0.00100.152840.0003
Fetch class attribute name0.00180.274070.0003
XML
Image XML parsing0.00450.682940.0011
class_abstraction
Instantiating content class attribute0.00000.002370.0000
General
dbfile0.00330.5085280.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs