Recently Viewed...
DNN Modules
SnowCovered Top Sellers

Gloss is the first ALL COLORS! skin, featuring a powerful XML-based flash and being 100% W3C CSS XHMTL1.0 compliant. Tune it yourself on the fly, changing colors, backgrounds, containers, text color and size, width and more! Brilliant!

Content Workflow + Versioning + Categorization + Multiple Display Options = Truly Advanced DotNetNuke Content Management (Requires DNN 4.5.1 or later)

Powerful, Ajax Enabled, Easy to Use. Document Management has never been better. Open-DocumentLibrary allows DotNetNuke users to share and manage documents in a flexible, intelligent way, offering granular control over Folder and Document access.

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to add videos in various format and automatically convert them to flv format, you also can add videos from embed code and play them in our integrated flash video player.

'Relationship Building' and 'Communication' are two essential nuts and bolts for a business to prosper. This module allows you to bridge both of these and easily generate continuous awareness of your web site, products and services. Your prospects and customers will greatly appreciate this featur

In this day and age, knowing as much detailed information as possible about your customer, prospect or web site user is essential. Thankfully, the new 'Dynamics Forms' module from Data Springs, makes it easier than ever to segment your data collection efforts.

Ultra Media Gallery is the most popular photo gallery and media gallery solution for DotNetNuke, UMG offers 10 different flash player to browse your gallery with completely different user interface experience.

Capture your users attention, enrich your site with multimedia flash, and create and opt in distribution list for your DNN site. These are just a few of the many features the Data Springs Module Collection can provide you.

aero is a flexible skin pack, featuring 8 incredible base colors, now with a XML-based Flash header.Combine 3 background layouts, 3 widths and 6 headers to create your own, personalized site.Now also in Color Specific Packs in a total of 40 colors!!

ALL NEW ! - Minimalist includes skin packs in 12 great colors. Each color has Flat, Gradient and Glass versions. Feature rich XML Flash header, perfect for just about any purpose. 9 Different menu options in each skin pack; 3 horizontal menus, 3 vertical menus and 3 all-new Twin level menus . . .

    |   Register   |   Tuesday, December 02, 2008   
Data Springs Product Forums...
Subject: two identical dynamic questions on the same form
Prev Next
You are not authorized to post a reply.

Author Messages
Erik
Posts:6
skipping stones
skipping stones

02/14/2007 3:46 AM  

hello,

 

Is it possible to post two (or more) identical questions on the same form using dynamic forms 2.2?

I haven't succceeded in getting this to work.

 

For example:

i'm building a form in which a visitor can order a shoe.
(sorry for the lame example)

 

My first question is:

 Select a size:
   * 8
   * 9
   * 10

 

After that, lets say i want the user to choose a color.

But the colors available depends on the chosen size.

So if the user choose size 8, i want to show diffrent colors (answers) than when the chosen color is 10.

But i both cases i want to show the question "Select a Color".

 

Can this be done with dynamic forms?

 

with kind regards,

 

Erik

Chad
Posts:2264
river guide
river guide

02/14/2007 9:33 AM  

Erik,

There are two ways of doing this.

Solution #1: Create your first question of 'Size' with the dropdownlist values that you mentioned.

Next, create three questions but for each question set the advanced field option 'Hidden until forced visible by an event' for these field types.

Next, under Question Events create three event types. Choose the question event type to display a hidden question based on a fields value. For each event you can set it up so that if the user selects 8, it would display the question that was originally hidden and has the colors that match with 8 and if the user chooses 9 it woudl display the question that goes with the colors for shoe size 9 etc...

Solution #2: This involves SQL so its more complicated but it also isn't much trouble to get it going.

First, make a dropdownlist field as you were going to in solution #1.

Next, setup one question called 'Shoe Color'. From within this question dropdownlist use SQL instead of manually entering the colors. This means you will need to have a table in your database that really has two major columns. One column would be color and the other column would be shoe size. Next, whatever you named your 'Shortnamefield' within the first dropdownlist for sizes keep that shortname field handy because you will use it in the query.

Example would look like this:

Select Color as QuestionOption, Color as QuestionOptionValue from MyShoesTable Where ShoeSize = '$(MyShoeSizeShortNameField)'

Thats the basics... Now, I believe you will need to make a question event to get the 'post back' feature once you select the dropdownlist field type for size you might still want to make the show color field hidden until forced visible by an event.

Oh, and for 'Select Color' you could do something like this:

Select '- Select Shoe Color -' as QuestionOption, 'Default' as QuestionOptionValue
Union
Select Color as QuestionOption, Color as QuestionOptionValue from MyShoesTable Where ShoeSize = '$(MyShoeSizeShortNameField)'

Then the query would first pull up a - Select Show Color - within the dropdownlist before it would load the colors.

-Chad

You are not authorized to post a reply.
Forums > Product Discussion - DotNetNuke Modules > Dynamic Forms > two identical dynamic questions on the same form



ActiveForums 3.7

Copyright 2005 - 2008 by Data Springs, Inc.
Terms Of Use | Privacy Statement