Forums / General / Multi-page forms: best practices?

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

eZ debug

Timing: Jan 18 2025 10:33:27
Script start
Timing: Jan 18 2025 10:33:27
Module start 'content'
Timing: Jan 18 2025 10:33:28
Module end 'content'
Timing: Jan 18 2025 10:33:28
Script end

Main resources:

Total runtime1.2436 sec
Peak memory usage4,096.0000 KB
Database Queries201

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 588.8359180.8438
Module start 'content' 0.00891.0761 769.6797630.0000
Module end 'content' 1.08500.1585 1,399.6797337.3750
Script end 1.2435  1,737.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.3253210.0002
Check MTime0.00150.1187210.0001
Mysql Total
Database connection0.00180.144510.0018
Mysqli_queries1.156292.97152010.0058
Looping result0.00270.21751990.0000
Template Total1.210197.320.6051
Template load0.00210.171520.0011
Template processing1.208097.133720.6040
Template load and register function0.00030.024410.0003
states
state_id_array0.00120.093410.0012
state_identifier_array0.00110.091020.0006
Override
Cache load0.00180.1475250.0001
Sytem overhead
Fetch class attribute can translate value0.00200.160450.0004
Fetch class attribute name0.00120.094570.0002
XML
Image XML parsing0.00670.535350.0013
class_abstraction
Instantiating content class attribute0.00000.001170.0000
General
dbfile0.00850.6821390.0002
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs