Forums / Setup & design / How can i create a multiple page contextual question form ?

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

eZ debug

Timing: Jan 18 2025 18:27:13
Script start
Timing: Jan 18 2025 18:27:13
Module start 'content'
Timing: Jan 18 2025 18:27:14
Module end 'content'
Timing: Jan 18 2025 18:27:14
Script end

Main resources:

Total runtime1.0272 sec
Peak memory usage4,096.0000 KB
Database Queries206

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 589.1016180.7969
Module start 'content' 0.00810.8900 769.8984661.2500
Module end 'content' 0.89810.1290 1,431.1484337.0234
Script end 1.0271  1,768.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.4734210.0002
Check MTime0.00230.2213210.0001
Mysql Total
Database connection0.00110.105910.0011
Mysqli_queries0.948992.38302060.0046
Looping result0.00230.22462040.0000
Template Total0.984395.820.4922
Template load0.00490.478820.0025
Template processing0.979495.347520.4897
Template load and register function0.00010.010110.0001
states
state_id_array0.00970.943910.0097
state_identifier_array0.00080.082720.0004
Override
Cache load0.00400.3937330.0001
Sytem overhead
Fetch class attribute can translate value0.00220.217960.0004
Fetch class attribute name0.00100.096560.0002
XML
Image XML parsing0.00130.127660.0002
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00300.2911280.0001
String conversion0.00000.000930.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
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
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