Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to disable "Enter" key when user fills out the form?

Featured Replies

Hi Guys:

Thanks very much for all the helps on "Valuelists disappear" topic, I solved it by adding "List=Value List Name" in [FMP-Valuelist: Field Name, List=Value List Name"] although List is optional in some cases. For "Field is missing" error, I also found the cause, there is a mistake made on one field name (it's my own fault!)

Now I wonder how to disable "Enter" key when user fills out the forms, I know users like to hit on "Enter" key when they finish typing in one field.

Question two is regarding to prevent submission of form Data multiple times (by clicking the submit button on a web form, then the back button in the web browser), someone suggested to use

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

But it doesn't work, when I go back and forth, I can always generate a new record, it's not what I want, can anybody help me?

Thanks a lot!

Catty

You need to learn about the meta tags. They are very valuable. One feature which you need to use with the no-cache is a meta tag using a refresh. Learning about meta tags and how to construct that code is very useful. A search engine for meta. I think vancouver had a very useful page. It's been a while though since I read it.

Another problem which you will encounter is the nervous fingered client who double-clicks the -action button. You would be well advised to read the thread about nervous finger on the cdml forum. You will be told about JavaScript. You will be provided a link to a usable code. The editing which is necessary is very obvious. I know. I used that link and was able to work out the edit for my needs. It was pretty easy to do.

[ January 31, 2002: Message edited by: Keith M. Davie ]

Catty

If your form is:

code:


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

you can post that with

<A href="javascript:Document.newform.submit()">Submit</A>


[ January 31, 2002: Message edited by: Anatoli ]

Hi, I've had to do this a nu,mber of times and Javascripts are very helpful.

at

http://javascript.internet.com/

I found ready-made scripts including one called 'submitonce' which stops the form from being submitted twice and there's also a neat simple one which vaildates that all the fields you need are filled in.

If you can't find the ones you need, mail me for a copy from my collection!!

I also had to do an online voting site for trade awards which had to catch whether people went back and voted again, So I collected lots of tricks for that, many of which used cookies . frown.gif" border="0 Again, mail me if it will be of any use.

regards, Jeff

  • Author

Thanks very much, guys!

Catty

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.