Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Trying to be clever with forms...

Adding dynamic feature

1:30 am on Aug 23, 2001 (gmt 0)

Junior Member

joined:Jan 19, 2001
votes: 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?

2:25 am on Aug 23, 2001 (gmt 0)

New User

10+ Year Member

joined:Nov 1, 2002
votes: 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 :-)