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.

Preventing Carriage return?

Featured Replies

Is there a good way to prevent users from entering a carriage return when trying to submit a form? In my case, the user is entering search criteria into a text field. Many users automatically hit enter instead of the submit button (thus creating a return). It is messing up my find script. I have tried using the trim and substitute functions to remove this return and it seems as if the return is removed. However, the script still doesn't work. I have also tried Field behavior (ie: setting tab, return, enter to move to next field) on the field. WORKS LOCALLY IN FMP, BUT doesn't seem to work in the browser. Any ideas?

If you don't actually let your users use find mode in IWP, you can control their searches with a script. Set up a layout of global fields that you use to allow users to fill in search parameters. When the user clicks a button to perform the search, your script will remove any return characters and properly format the search parameters, then go to find mode and use Set Field[] to populate the "real" search fields with the requests, and then perform the find and return the user to the list of results.

The user doesn't see anything but the search form and the results...

  • Author

exactly what I am doing. So the "return" space is eliminated but for some reason the search fails anyway. Is there a way in IWP to force the submit of the search (and subsequent script) when a user hits enter or return, similar to what happens in most web sites?

  • 1 year later...

I have the same problem. If you have found a solution Sleepinggypsy please let me know.

thanks,

Kaduby

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.