Website Questionaires Options
howard
Posted: Friday, December 08, 2006 12:59:02 PM
Rank: Devotee

Joined: 8/22/2006
Posts: 72
Hi,

A client has asked us to produce a set of questionnaires for their umbraco implementation. At first glance this seems quite simple, however they would like to be able to control the data within the fields via the CMS. So for example, there are 6 question then a personal/companies detail page with a submit button. (the form can be handled via tabbed dhtml so it is a single post which will solve a few problems). The Drop Downs/Multi pick lists will need to be populated from an area within the CMS that they can edit. The user would also need to set required fields.

Would it be best to use XSLT and the 'multiplePagePicker via source to build the drop down lists? I have done this before for filtering news article categories. Maybe writing a usercontrol and using autoform to write the data to umbraco.

Are there any other options available or something that is already built we can adapt??

thanks .. Howard



warren
Posted: Friday, December 08, 2006 1:06:19 PM

Rank: Addict

Joined: 7/19/2006
Posts: 820
Location: Benfleet, Essex, UK
Hello howard,
I will be interested in your end results and I would like to hear abit more about your news filtering.

Warren :)

Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
cpalm
Posted: Friday, December 08, 2006 1:39:19 PM

Rank: Aficionado

Joined: 7/19/2006
Posts: 165
You could just use a text field, then the editor should separate with a character

Car (seperate with comma) : Bmw, Skoda, Fiat, Mustang
Then in your xslt you could use the split function and build your select list

CPalm, www.cpalm.dk
howard
Posted: Friday, December 08, 2006 4:33:39 PM
Rank: Devotee

Joined: 8/22/2006
Posts: 72
Thanks... Great idea, simple is often best :D

I have just read the brief in more deatil and the client, actually wants the ability to add their own questions aswell as edit the data in the default questions. So they may need to add a question and select a form input type (.e.g text box, drop down etc) then populate it with data. This seems a little more complicated to achieve within the umbraco admin, what do you think??

chhers again



mortenbock
Posted: Friday, December 08, 2006 7:09:38 PM

Rank: Addict

Joined: 7/19/2006
Posts: 819
Location: Århus, Denmark
I've been looking at something like that as well, and I think that if your client has to be able to do those thing using standard umbraco stuff, they would have to learn to create datatypes and edit document types.

That could be done, but I still haven't figured out how to make the rendering xslt flexible enought for editors to create their own questionaires.

Extension anyone? ;-)

Morten Bock - Level 2 certified - MVP 2008/2009 - My danish blog with a few english posts

kalpa
Posted: Friday, December 08, 2006 8:13:40 PM

Rank: Fanatic

Joined: 7/19/2006
Posts: 496
Location: Göteborg, Sweden
This might become an interesting thread...

A solution that has crossed my mind would be some kind of super document type with the ability to display and edit it's sub nodes. In this way a questionnaire might contain n questions that each contains n alternatives... Thanks to the super doc type the editor isn't forced to open each alternative, but can reach them all from within the parent....



" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
jason
Posted: Monday, December 11, 2006 2:27:09 PM
Rank: Aficionado

Joined: 7/19/2006
Posts: 182
Location: Pittsburgh, Pennsylvania, USA
Our survey feature has questions and answers all managed thru the content tree. We created two custom document types of surveyQuestion and surveyAnswer where surveyQuestion is the parent and the only allowable child is the surveyQuestion. Put all your questions and answers in one node, use xslt to access that node, look for a question and then run down the question's children to display the answers.

We use a .net macro to run the node tree, display a random survey question and answers, and write the results to a db. (email me at jevack at rmu dot edu for code)


Jason





Jason
mortenbock
Posted: Monday, December 11, 2006 5:13:06 PM

Rank: Addict

Joined: 7/19/2006
Posts: 819
Location: Århus, Denmark
That sounds pretty neat. A nice approach to making the questions easy to maintain for the common editor.

Morten Bock - Level 2 certified - MVP 2008/2009 - My danish blog with a few english posts

cpalm
Posted: Monday, December 11, 2006 10:45:19 PM

Rank: Aficionado

Joined: 7/19/2006
Posts: 165
Here is my thoughts

-Survey (document type: Survey)
--What color du you like (document type: Radio button list)
----Blue (document type: Value)
----Red (document type: Value)
--What car do you have (document type: Selectbox multiple)
----Skoda (document type: Value)
----Bmw (document type: Value)
--A little text comment from you (document type: Label, this is not a question)
--How old are you (document type: Textbox)
--Final comment (document type: Textarea)

This is actually how I make form modules, this way is it very easy for webmasters to create forms.
In a form module there could be the following things to set on a document type "Textbox":
Field must not be empty (checkbox)
Validate e-mail (checkbox)
Multiple lines (checkbox)

And I would normally handle all the logic via xslt

CPalm, www.cpalm.dk
martin
Posted: Friday, February 09, 2007 11:44:42 PM
Rank: Devotee

Joined: 7/24/2006
Posts: 249
there is a very good survey application with full source here:
http://www.gotdotnet.com/workspaces/workspace.aspx?id=8dd437f2-25f7-4234-9a31-887140a7d921
Gregorius
Posted: Monday, March 05, 2007 5:07:15 AM

Rank: Addict

Joined: 7/29/2006
Posts: 513
Location: Sydney, Australia
Christian Palm wrote:

Here is my thoughts

-Survey (document type: Survey)
--What color du you like (document type: Radio button list)
----Blue (document type: Value)
----Red (document type: Value)
--What car do you have (document type: Selectbox multiple)
----Skoda (document type: Value)
----Bmw (document type: Value)
--A little text comment from you (document type: Label, this is not a question)
--How old are you (document type: Textbox)
--Final comment (document type: Textarea)

This is actually how I make form modules, this way is it very easy for webmasters to create forms.
In a form module there could be the following things to set on a document type "Textbox":
Field must not be empty (checkbox)
Validate e-mail (checkbox)
Multiple lines (checkbox)

And I would normally handle all the logic via xslt


Hey Christian,

that's a really great way of doing it. have you implemented this yet, and if so how did it go? I guess you could add actions to it (probably at the Survey doc type level), such as 'email results', 'email to', 'email confirmation to visitor', etc. wow, its cool - i like it.

love to hear if you've been using it...

cheers
greg

Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.