Form Submittal

Results 1 to 2 of 2

Thread: Form Submittal

  1. #1
    Join Date
    Dec 1969

    Default Form Submittal

    Hi all probably another easy one for you.<BR><BR>I have a form with a dynamically created drop box in it. Which uses the onchange command to submit the form when the box is changed. <BR><BR>Now I have set up some code which counts how many records there is in the recordset and if there is only one (hence only one option for the user) then It produces the menu with that option already selected. Now this works its the next bit.<BR><BR>Is there some code (javascript or other that I could add to make the form automatically submit if the case is the user has only one option to select?

  2. #2
    Join Date
    Dec 1969

    Default RE: Form Submittal

    &#060;script language=javascript&#062;<BR> function SubmitForm(){<BR> document.forms.FORM_NAME.submit();<BR> }<BR>&#060;/script&#062;<BR>&#060;%<BR>If ItemCount=1 Then<BR> &#039;Js to submit form<BR> Response.write "&#060;body onLoad=""SubmitForm(); return false;""&#062;"<BR>Else<BR> Response.write "&#060;body&#062;"<BR>End If<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts