Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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


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

Recommended Posts

  • Newbies
Posted

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

Posted

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.

  • Newbies
Posted

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.

Posted

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.

  • Newbies
Posted

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!

Posted
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 & "*"
  • Like 3
  • Newbies
Posted

 

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...
Posted
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.

Posted

Hi Steve

 

Is there only one way then?

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

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