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!

How do Question Events really work???
Last Post 11-11-2007 06:33 PM by Chad Nash. 4 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
AndyUser is Offline
going with the flow
going with the flow
Posts:38
Avatar

--
09-24-2007 09:27 AM

    I have a list of server environments (such as Shared Hosting, Dedicated Hosting, Customer A, Customer B, etc.) that are populated into a drop down list from an SQL query of an "Environment Table".  On that list, there is an option.  When and if the add new option is selected, I would like to display a previously hidden question allowing the user to key in a name of a new environment but I can't seem to make this work.  Which question do I tie the Question Event to? The environment question? Or the "Add New" question?  How can I make it so that ONLY the add new option fires the event? Do I have to add a check box option or something that ONLY has the 'Add New' option in it that drives the add new event?

    Can someone explain this better to me?  Specifically, I need to know:

    • Which 'question' does the event get placed on?
    • Which question is the 'Initiation Response'?
    • Which question is the 'Affected Question'?
    • What is the 'Affected Question New Default Value'?

    I've tried all kinds of ways, sometimes the hidden question never appears... sometimes it won't stay hidden.

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    09-25-2007 03:39 PM

    Hi, well in your case to be safe you would only really only need to focus on either hiding all of the fields initially until the event fires or leaving all of the fields visible initially and hiding some based on a field response.

     

    To answer your questions...

     

     

    Which 'Question' does the event get placed on? - This is the field that you want to 'Trigger' the response. For example if you have a combo box named 'Color', with 'Blue', 'Green', 'Red' as options you would choose that the field 'Color' would be the postback question (initiation question). Then, any of the colors would represent the initiation response (i.e. Blue). So that is saying that when the user chooses an option from Color if they select 'Blue' its going to fire this question response.

     

    What does the event do? Well the affected questions are going to be the question(s) that are actually affected when the user chooses 'Blue' from the 'Color' dropdownlist. In this case you would want to choose the event type to unhide questions that were previously hidden. Whatever question(s) you want to have visible select here.

     

    Finally, there is a 3rd step because you are wanting to un-hide fields that were previously hidden event type you have to make that field initially hidden. In order to do this you need to specify for each field that you want to initially hide under the 'Advanced Field Properties' for each field under Manage Questions. There is a setting, 'Hide field until forced visible by question event' that you need to check.

     

    You don't need to worry about the affected question new default value, this is only needed for a different event type.

     

    If you have set it up as below and its still not working let me know and we can debug it further.

     

    -Chad

    AndyUser is Offline
    going with the flow
    going with the flow
    Posts:38
    Avatar

    --
    11-06-2007 07:42 AM
    Thanks. What about in the event that I query the user for some text, say a portion of a string, can I fire an event as soon as they tab away from the text field that will perform a query to find that text in the db? After they enter text, I want to provide a drop down list of possible entries using the variable from the text field such as 'select dbcolumn1 as questionoption, ID as questionoptionvalue from mydb.dbo.mytable where dbcolumn1 LIKE '%$userstext%'. Basically, I want to add a search function within the actual dynamic form to provide some additional selections. Can this be done?
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    11-11-2007 06:31 PM

    Andrew,


    Hi. Well in this case there are more features coming in this direction in 2.5 with the ability to show/hide/calculate fields based on client side events (do not require postback and can be done based on tab off of a textbox or any other field type etc...). I still don't believe you will be able to do what you are wanting though as this has 'SQL Injection' risks when you begin to implement a feature such as this.



    Right now you can use dependent lists so that a dropdownlist 2 uses SQL that calls and uses dropdownlist 1 etc... This applies to field types for dropdownlists, radio buttons, checkboxlists, listbox's etc... So, in your case the textbox field wouldn't be able to be used. This is because a user could not enter a text such a case what would happens is something like LIKE %'''DELETE FROM USERS''' and depending on how they entered the text with ' and parentheses your site is at a large risk for SQL Injection. There are methods you can avoid this but this is not something we would want to enable for a majority of users as it leave them open for security risks.


    -Chad

    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    11-11-2007 06:33 PM

    Andrew,

     

    Hi. You might check out more information on SQL Injections and their risks here.

     

    -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