homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Trying to be clever with forms...
Adding dynamic feature

Msg#: 971 posted 1:30 am on Aug 23, 2001 (gmt 0)

Don't know if it's possible or not, because I've not seen any of the major sites doing it.

Basically, I have an ezine with two different editions, a European and North American. Is it possible to only present subscribers with a drop-down box asking which state/province they reside in if they select the North American edition? Obviously it's meaningless to ask them which state they reside in if they live outside the US/Canada.

I know there could just be an option in the state/province drop-down form which says 'N/A', but I thought removing the drop-down box if they state they live outside North America would be cool :)

How does one integrate such a feature into a sign-up form?



10+ Year Member

Msg#: 971 posted 2:25 am on Aug 23, 2001 (gmt 0)

You could use Javascript to do this.
In the first window in which your user
selects USA or European, use a radio
button or whatever you like, to set a variable
Choosing_USA = true; , for example.

If your form is launched in another window,
just inspect window.opener.Choosing_USA ...
if set to true, dynamically generate the
form to include the state/province pulldown.

Hope this helps :-)


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved