Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 8608 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hey all! I have a form which I submit to perform a "-find" action. The problem is I want the form to automatically submit when the page loads. I thought I could use the Javascript onload command, and then do a frmSubmit.submit(); command, but apparently a submit() command isn't exactly the same as pressing a submit button. How can I make a page submit automatically and still perform the "-find" action??

Thanks!

C

Posted

Use a page like this to start with:

<body on..load="javascript:document.startfm.submit();">

<form name="startfm" action="FMPro" method="post">

<input type="hidden" name="-db" value="StreetChecker3.fp5">

<input type="hidden" name="-lay" value="CGIfields">

<input type="hidden" name="-format" value="get_street.html">

<input type="hidden" name="streetname" value="Any Rd">

<input type="hidden" name="-find">

</form></body></html>

The "on..load" should be "onload". I needed to do that so it would display properly here.

Hope this helps.

Garry

This topic is 8608 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.