Recently Viewed...
To help you navigate to pages you most recently visited, select from the links below.
Product Forums
Sharepoint Forums
Page Tags
Newsletter
Dynamic Forms Demonstrations
DNN Modules
SnowCovered Top Sellers

'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

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...

Version 5 of the perennial best-selling tool for creating data-based solutions in DNN without custom programming. This version focuses on greater flexibility, expandability, and ease-of-use.

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.

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!Available for DNN4 and DNN5

The award winning discussion forum and community solution for DotNetNuke is now even better. When you need to build the best community site, you need the best module, Active Forums!

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 . . .

Edit documents directly on your server. The premier document management solution for DotNetNuke (DNN). Index contents of documents. Share documents across your portal and avoid duplicates. Revised and flexible UI. Extensible architecture.

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.

    |   Register   |   Thursday, January 08, 2009   
Data Springs Product Forums...
Subject: Using blank option for drop-down action event: Regular Expression Needed
Prev Next
You are not authorized to post a reply.

Author Messages
John
Posts:44
paddling down the creek
paddling down the creek

07/16/2007 4:17 AM  

I created a drop-down to trigger an action event, which works fine, except when it uses a default. For example, this drop-down has 3 options: hotel, cruise, flights. If hotel is selected, it should trigger a set of hidden questions; likewise for the other options.

Given that it uses a default (in this case hotels or any other I would set), the user has to select another, then go back and select hotels to trigger the event.

I assume the work around would be to have a null or a -select option- option. If this is the case, however, I would need to validate this required field and further assume I need a regular expression that says the field cannot equal 'blank' or cannot equal "-select option-.

Knowing nothing about nothing, could someone help me with this one?

 

One question I had: I have a field for currency; would using $ as the default screw up any ability to query the data? For example, I used '$' as the default, and I hope users would enter $50, for example.  Would $50 screw up the integrity of the DB or limit a query/sort/filter? 

 

 

Chad
Posts:2385
river guide
river guide

07/16/2007 3:02 PM  
John,

As far as the dropdownlist. Yes you would either need to make sure the fields that show up originally match with the default (i.e. Hotel) or, yes you can implement the -Select Option-. One thing to note, as long as you have server side validation turned on you can make combo box fields required. If the field is set to required (and server side validation is turned on) the very first option within the dropdownlist will cause the validation to throw an error and the validation message will appear that the field is required.

I don't imagine having the user enter $50 would in any way hurt the integrity of the data etc... You might consider searching around for regular expressions though so that each user is forced to enter a $.

-Chad
You are not authorized to post a reply.
Forums > Product Discussion - DotNetNuke Modules > Dynamic Forms > Using blank option for drop-down action event: Regular Expression Needed



ActiveForums 3.7

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