Recently Viewed...
DNN Modules
SnowCovered Top Sellers

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!

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.

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

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.

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.

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.

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.

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   |   Friday, November 21, 2008   
Data Springs Product Forums...
Subject: Help with Javascript OnBlur Validation
Prev Next
You are not authorized to post a reply.

Author Messages
Chip
Posts:15
wading in the water
wading in the water

09/11/2006 4:27 PM  
Hi,

I am new to Javascript and would like some help using the Javascript OnBlur Validation.  Hopefully the answer will help other Javascript beginners to use this feature in Dynamic Registration.

Following is a list of the relevant Dynamic Variables and their question type that I have programmed:

$(Employment) - Listbox
$(Company) - text box
$(Title) - text box
$(JobLevel)- Listbox
$(Function)- Listbox
$(WWemployees)- Listbox
$(EmailType) - Radio Options

$(Employment) is a Listbox question that is set as a "Required Field." It asks their employment status.  The options are (1) works full time, (2) works part-time, (3) military, (4) student, (5) homemaker, (6) retired, and (7) other.

The rest of the fields listed are not set to Required.  However, if someone says that they work full-time, part-time, or in the military (first three options on $(Employment), I want to make them required.

In plain English, I am looking for the Javascript for $(Company) that says:

If Employment is option 1, 2, or 3 and Company is blank, display an error message that says "You must provide your company name."

I also need to know the syntax to test if no options were selected in the listbox questions or the last Radio Option.

Hopefully this makes sense.  I do not know how Dynamic Registration stores its data and what the default values are to know that nothing has been selected/entered.  I hate to ask someone to simply provide the answers, but I am hoping that a Javascript pro could give me the code for all six OnBlur validations in just a couple of minutes.

Thanks in advance for your help!
Chip
You are not authorized to post a reply.
Forums > Product Discussion - DotNetNuke Modules > Dynamic Registration > Help with Javascript OnBlur Validation



ActiveForums 3.7

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