Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

two identical dynamic questions on the same form
Last Post 02-14-2007 07:33 AM by Chad Nash. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Erik SierraUser is Offline
skipping stones
skipping stones
Posts:6
Avatar

--
02-14-2007 01: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 am 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 different 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 NashUser is Offline
    Posts:5260
    Avatar

    --
    02-14-2007 07: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.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi