How can I get FP forms to perform TWO actions?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to get FP to both send form results to a csv file AND to activate
a javascript. Here is the JS code I am using: <form action="Q1grade.htm"
name="Quiz1" id="Quiz1" onsubmit="Javascript: return(validate(this));">

I can get the JS to work, but I can't get the form to send the results to
the csv file...OR I can get the results but not the JS.
 
The server side code in Q1grade.htm updates the csv file - does your
server parse .htm files for server side code, as it would for ASP or
PHP pages?

I suspect that you actually wish the FP extensions to manage the .csv
file. If this is the case then right-click anywhere in the form and
check the form properties. They should send the results to a file
name, not "Send to other" or "Send to Database".
The form should be edited in an open FrontPage web, and HTTP published
to the server.
 
what is the "action="q1grade.htm" ???

it should be pointing to a script to process the form such as the FP form
handler (or a thirdparty script)

such as <form action="sendmail.asp" method="post">

and on your button
<input type="submit" name="submit" Value="Submit"
onclick="Javascript:return(validate(this));">

try sticking the calling of the JS function as an onClick rather than
onSubmit.
 
Back
Top