Jump to content
Server Maintenance This Week. ×

Search problem


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

Recommended Posts

I've maid a search form with only one field. The forms works fine if the user enter a word and then presses the submit button. But if they hit the return key they get an error (no records found).

Do I have to control the form with a Javascript or can change something in my form to make it work even if they press return?

I've searched FileMakers Tech Info, but didn't find any answer.

/Liveman

Link to comment
Share on other sites

Quote from Techinfo Article 104764 ( http://www.filemaker.com/support/techinfo.html )???

quote:

CDML: Using the Return or Enter Key to Submit a Browser Form

Visitors submitting a form via browser often hit the Return or Enter key instead of clicking on a Submit or Search button. However, the two actions do not always submit the same information. This is a function of the way HTML works currently, and is not a limitation of Claris Home Page 3.0 or FileMaker Pro 4.0.

To ensure that a form is correctly submitted when a visitor presses Enter or Return, add a

hidden input type to your form, attaching the same name to it as your Submit button.

For example, the HTML for your submit button in a search page might look something like this:

<INPUT TYPE =
Link to comment
Share on other sites

This topic is 8646 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.