Recently Viewed...
DNN Modules
SnowCovered Top Sellers

Live Content uses Web 2.0 approach to provide a Rich User Interface and streamlines content presentation by overlaying content on current page. Overlay images, videos, audio, text/html content, flash, dotnetnuke modules, and external content. Experience the demo...

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!

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

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.

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.

The Catalyst skins are professionally designed, coded and packaged by a team of DotNetNuke experts. The skins are available in 12 great colours. This skin is easily customisable with our unique DrNuke EasyMod technology. Try our demo!

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   |   Thursday, December 04, 2008   
Data Springs Product Forums...
Subject: Question Events and Combo Boxes
Prev Next
You are not authorized to post a reply.

Author Messages
Scott
Posts:18
wading in the water
wading in the water

07/01/2008 9:24 PM  

I have a Combo Box field that I have manually put in several values (so it is not SQL driven). I have several Questions on the form marked as "Hide Until Forced Visible by a Question Event". I have also set up 2 "Display" question events based on the Combo box. I am able to set up the Initiation/Postback Question to be the combo box question. I leave "Execute Event for Any Response" UNCHECKED. Then I select my "Initiation Response" from the dropdown values and select which Questions on the form I want affected.

The problem is that the "Initiation Response" does not seem to be affected by my selection. I can select any value from the dropdown list, update it, then go back to look at it and it will ALWAYS be the FIRST one in the dropdown list. Am I doing something wrong here? Any advice is welcome.

Scott

Candace
Posts:94
river guide
river guide

07/03/2008 12:58 PM  

Hi Shawn,

Thanks for setting it up on betasprings.  We're able to duplicate the problem and we're looking into a fix.  However, due to the 4th of July holiday, we might not be able to get back to you until next week.  Will keep you posted.

Thanks for reporting this.

Candace

 

Chad
Posts:2271
river guide
river guide

07/03/2008 7:30 PM  
Scott,

Hi. A couple questions...

Is this just when setting up question events? For example, when you setup the question event are you saying that it will never store the 'value' properly for what should initiate the question event? Or are you saying that event did save correctly but its just not functioning properly on the user-facing form?

We just posted the 2.6.51 patch on Snowcovered so you might check it out as well, this is what I am testing against locally and it appears to be working correctly.

-Chad
Scott
Posts:18
wading in the water
wading in the water

07/06/2008 8:37 PM  

Chad,

Although it gave me no errors it appeared to not store the value correctly. For example, if I set it to initiate on the 4th item in the list it would let me save it..But when I would go back to edit it would show it for the FIRST item in the list. It never correctly fired off for the 4th item..always for the 1st item. I will check out your new patch and let you know if it solves my issue. Thanks for being so responsive.

Scott

Scott
Posts:18
wading in the water
wading in the water

07/07/2008 6:01 AM  

I just tried the patch and found it did not resolve the issue I am having. After loading it the behavior appears to be the same.

Candace
Posts:94
river guide
river guide

07/10/2008 10:29 AM  

Hi Scott,

 

First, I'd like to apologize for posting a response meant for someone else on your thread last week.   

 

Ok, so for your issue with the question events:  We are not able to duplicate this locally and on betasprings.  I created a sample form called Question Events and Dropdowns in betasprings.com where the events are firing correctly.  Does your form have the same settings?  (Use host/dnnhost to login.)

 

If the settings are the same and you're still experiencing problems, please set up your form in betasprings.com so we can review it further.

Thanks,

Candace

 

Scott
Posts:18
wading in the water
wading in the water

07/14/2008 8:00 PM  

Candace,

I added my version of this on BetaSprings on my page called Scotts Form. You can see the problem I am having by testing what I have there. I have set up 3 question events and set them to the appropriate choice from the Combo Box. However when you make a selection from the box it displays all hidden questions, defaults the selection to the first one, and the Question Event always defaults to the first one when you go back to look at it. Help!!!

Also I am trying to use the Client Side Event code that was supplied with the AuthorizeNet CheckBox Group example. However when there is a postback (from selecting an option from the ComboBox) it gets reset to $0.00. Are there any examples out there that show how I could display the total from using the ComboBox approach? I want to pass this value to PayPal.

Thanks

Scott

Candace
Posts:94
river guide
river guide

07/15/2008 11:25 AM  

Hi Scott,


Thanks for setting your form up on betasprings.  I got it working now and here's what I did:



1.  Your Total field was a Text/HTML field.  I added a new textbox field called YourTotal just so you can see how it works.



2.  Please check out the client side event I added in the Venues field.



3.  I switched the field type from combo box to Checkbox Group.   You can change it back to combo box if you want, just know that the client side event will have to change also.  You might want to visit betasprings again and review the Calculation Field 2 under Dynamic Forms.  This will give you an idea on how a combo/dropdown box may be handled.


Hope this helps.  Let us know if you have additional questions. 

Candace

Scott
Posts:18
wading in the water
wading in the water

07/15/2008 7:14 PM  

Hi Candace,

I might be missing something but I still don't see this functioning properly. On the form if you check the Aug 9 venue for example..all of the hidden fields display. THIS SHOULD NOT HAPPEN. I only want the fields associated with the Question Event for Aug 9 to display.

Now go to the Question Events section and look at the Aug09BP event I set up. Notice how it is showing the July 13th venue selection in the Initiation Response field. Change it to the Aug 9th venue and Update it. Now select the Aug09BP event again. AGAIN IT SHOWS THE JULY 13 SELECTION in the Initiation Response field.

Because I need this to be a ComboBox I am afraid that the Client Side Event will not work as it is only geared for a CheckboxGroup. I will have to search out other methods of populating the total field. The fact that it was a Text/HTML field previously was fine as it was updating correctly when I originally had it as a CheckboxGroup (and this is what it was in your Authorizenet example).

Scott

Chad
Posts:2271
river guide
river guide

07/16/2008 10:19 AM  

Scott,

Lets skip the issue with the client side event until the question event is working as you are needing it too. At first glance setting up our example of the dropdownlist/three colors was appearing to work properly so we are reviewing your form to see the differences (covered below)

Regarding Client Side Events...
As far as question events / client side events... We have found that client side events and question events can cause problems because of a postback on the server. The 'work around' for this is to have the same function call be executed in the 'Initial Javascript' option. The initial javascript option is setup above the javascript file under module configuration. As Candace mentioned, you will have to have a different javascript calculation as that example was specific to CheckBoxList field type.

Regarding your question event(s):
Question events must be 'tied' to either the any response, or based on a field response. In your case a combo box value... So... The problem here (or situation) is that all of your dropdownlist items have a value of 50.00. So when the question events are setup they are setup to display if the value of the field is 50.00, when the user selects an option, all of the fields are displayed because each option has a value of 50.00.

So..... My suggestion would be to create values such as AUG13 or AUG9... Then, either make your payment static (if they really are all 50.00) or setup a client side event to do an if statement and determine the price. So basically 'if $(field) = 'AUG13' then price = 50.00' etc...

Finally... For other field types such as checkbox groups and listbox's, we have a solution for this any PayPal/Authorizenet in case you want the value to be the same price. You can find this in the user guide on page 90, where it references VALUE01_Price etc... You have the option of VALUE01_ thru VALUE20_ and with this method you can set the price at the end but still have a unique value. When the payment gateway is rendered it will remove the VALUE01_ and therefore pass the appropriate price. I think this is only available however for checkbox groups and listbox's as there are the only multi selection field types.


Hope this helps resolve your issue.


-Chad

You are not authorized to post a reply.
Forums > Product Discussion - DotNetNuke Modules > Dynamic Forms > Question Events and Combo Boxes



ActiveForums 3.7

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