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.

'Live, As-You-Type Search' With a twist?

Featured Replies

  • Newbies

Hello Guys!

 

I've been using this script: http://filemakerinspirations.com/2009/10/live-as-you-type-search-in-filemaker/ for a while now but have recently had a client that has asked:

 

"I like the 'live as you type search' but can we have so that it only filters down exact searches?"

 

For example with the above script if your start type 'Ma' you will get the following:

  • Mart
  • Martin
  • Amazing
  • Martian
  • Email

Instead he would like just result that start with 'Ma' so when he searches he would only get the following results:

  • Mart
  • Martin
  • Martian

Is there a way of modifying this script? If so it would greatly appreciated if you could advise how!

 

Thank!

 

LL

Are you sure you are using the script you have linked to? I have only glanced at it, but it doesn't look like it would produce the results you describe.

  • Author
  • Newbies

Hello Comment,

 

Thanks for your reply, yes the script above does seem to give the results I mentioned above, (if you start to 'Ma' it will show any instance where 'Ma' is part of the string, such as 'Mat, Amazing, Mark, Emma' etc,.).

 

What I would like is when I type 'M' it just show results that start with 'M' then if I type 'Ma' it will just show words that start with 'Ma' not contain.

The default Filemaker find searches for "words that start with [...]".  The search phrase "Ma" does NOT find "Amazing".

 

If "Amazing" is found as the result of entering "Ma" as the search phrase, your script must be adding wild cards to the search phrase before performing the find. I don't see that the script you have linked to does that.

  • Author
  • Newbies

I've just had a look and I think I have mistaken myself and given the wrong examples! 
 
When I type 'Ma' it brings up the following result

  • Martin
  • Martian
  • Dr Martin
  • Mr Marcus

What I would like is for just words/strings that start with 'Ma', so just:

  • Martin
  • Martian

And not 'Dr Martin' or 'Mr Marcus' etc,.

 

I'm guessing I would need it to ignore spaces when searching through the records somehow?

 
Sorry my previous examples where completely wrong in explaining what I was after!
 
The script I'm using is a follows:

 

Untitled.png

 

Once again sorry for the wrong examples in what I'm after!

What I would like is for just words/strings that start with 'Ma'

 

IIUC, you want to find only records where the field starts with [...]. For this, set the searched field to:

"==" & $thisterm & "*"
  • Author
  • Newbies

 

IIUC, you want to find only records where the field starts with [...]. For this, set the searched field to:

"==" & $thisterm & "*"

 

Ah! Perfect! Works like a charm!

 

Thank you for your help and once again sorry not explaining myself properly!

  • 2 years later...

Is this possible to do when using FilemakerGo?

 

3 hours ago, Izan said:

Is this possible to do when using FilemakerGo?

 

Yes, but you may find it's so slow that you have to wait as you type each letter.

Hi Steve

 

Is there only one way then?

Would you mind helping me on how to get it done please?

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.