Current location: Hot Scripts Forums » General Web Coding » JavaScript » Help with Dynamic Form


Help with Dynamic Form

Reply
  #1 (permalink)  
Old 10-20-03, 11:47 AM
talon39 talon39 is offline
New Member
 
Join Date: Oct 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Help with Dynamic Form

I am atmepting to create a Dynamic Email form. It will start out with input for the users contact info, then offer them a choice using radio buttons. The rest of the form will be displayed based on their choice. I have found a few good examples of this, however the recipient of the form also needs to change based on which option the user chooses. I have not been able to figure out how to change the recipient based on an option selection. Any Ideas?
Reply With Quote
  #2 (permalink)  
Old 10-20-03, 05:58 PM
talon39 talon39 is offline
New Member
 
Join Date: Oct 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Is my question too difficult, or too obscure?
Reply With Quote
  #3 (permalink)  
Old 10-27-03, 05:50 AM
Luke Skywalker Luke Skywalker is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Switzerland
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
dynamically change recipient of form

Hello,

I have attached a possible solution to change the recipient of a form, based on the users selection.

It is possible to access (and change) the value of the "action"-parameter via the path "document.my_form.action". To do this, you have to catch the "onSubmit"-event and call a function that changes the recipient. Please be aware: you have to return "true" by the function to send the form ("false" stops sending the form).

Cheers Luke
Attached Files
File Type: zip index.zip (545 Bytes, 285 views)
__________________
http://www.trueworld.ch
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I need a dynamic Form script talon39 Script Requests 0 10-17-03 05:55 PM
SQL database registration form help vinhkhuong PHP 3 10-10-03 03:49 AM
asp: URGENT! need to change code to create new form per id seala ASP 2 09-09-03 09:54 PM
close form sasi ASP 4 08-26-03 03:51 AM
Dynamic form checkboxes (ASP) Claralu ASP 3 08-06-03 03:37 PM


All times are GMT -5. The time now is 11:09 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.