How can i create a multiple page contextual question form ?

Author Message

H-Works Agency

Tuesday 29 November 2005 7:57:41 am

I need to create an 'eligibility test' for a telecom operator.

Its a succession of X pages of questions where each page's content is function of the previous page answers.

The questions this process has to anwser are :

<i>Can you apply to our product ?</i>
<i>Is your phone line is in a covered area ?</i>
<i>At the end sending an email to the right service</i>

Answers of the questions can be radiobox, select menu or textfields...etc

The difficulty is that each submit lead to a different form in function of the previous answers.

What is the best way to handle this case ?

Thanx for every help. I just need a few clues to know the direction i should work.

Martin

EZP is Great

Lazaro Ferreira

Friday 09 December 2005 7:00:30 am

Hi Martin,

General answer to your question is to develop your own extension, more information below:

http://ez.no/products/ez_publish_cms/documentation/development/extensions

---------------------------------
A quicker answer would be developing "custom action" extensions to re-use ezpublish content object infrastructure more, take a look at this thread below

http://ez.no/community/forum/developer/defining_methods_or_custom_actions_for_content_classes/re_defining_methods_or_custo

Both way above need php programming, I would like to hear of someone how to develop something like this just programming ezpublish templates

Lazaro
http://www.mzbusiness.com

Paul Forsyth

Friday 09 December 2005 8:01:03 am

You could also adapt the ezsurvey extension to your needs:

http://ez.no/community/contribs/applications/ez_survey

Also consider the setup wizards. They too can be adapted.

paul

El Fangio

Tuesday 13 December 2005 4:11:26 am

Maybe you can generate it using AJAX...

Mikhail Chekanov

Tuesday 13 December 2005 4:47:53 am

Hmm... Yes, you have to develop custom extension.
Or you can simulate the behaviour with wForms - http://www.formassembly.com/

--
mike
#6595551

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 21:02:31
Script start
Timing: Jan 18 2025 21:02:31
Module start 'layout'
Timing: Jan 18 2025 21:02:31
Module start 'content'
Timing: Jan 18 2025 21:02:32
Module end 'content'
Timing: Jan 18 2025 21:02:32
Script end

Main resources:

Total runtime1.2740 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 589.3047152.6563
Module start 'layout' 0.00460.0026 741.960939.5078
Module start 'content' 0.00721.2654 781.4688656.1406
Module end 'content' 1.27260.0014 1,437.609412.0938
Script end 1.2740  1,449.7031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2383160.0002
Check MTime0.00120.0970160.0001
Mysql Total
Database connection0.00060.049110.0006
Mysqli_queries1.219695.7231690.0177
Looping result0.00080.0589670.0000
Template Total1.247897.920.6239
Template load0.00220.175120.0011
Template processing1.245597.763320.6228
Template load and register function0.00010.008010.0001
states
state_id_array0.00060.050710.0006
state_identifier_array0.00140.107020.0007
Override
Cache load0.00180.1399330.0001
Sytem overhead
Fetch class attribute can translate value0.00080.063250.0002
Fetch class attribute name0.00130.099660.0002
XML
Image XML parsing0.00120.091850.0002
class_abstraction
Instantiating content class attribute0.00000.000860.0000
General
dbfile0.00070.0546170.0000
String conversion0.00000.000540.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/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