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

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

Recommended Posts

Posted

So I made a "Google Search" style Search Field based on the informations I found on a FMP blog, it's all nice and dandy except for one thing. I would like that when the user enter the text in the search field instead (or in the same way) of having to go and click on the search button (which performs the search script) he could press "enter" and it would perform the search anyways, is that possible?

Also, it would be cool that when the user selects the search field the text inside gets erased (at the moment I made it so it gets all selected). I tried to attach a script to the search field to achieve these two things but if I do that you can't enter text into the field anymore.

Thanks in advance.

Posted

OnObjectValidate Script trigger

Store the contents of the field in a variable

Do some logic

Then SetField to "" or record revert then wander off and do the search with the varible you grabbed

  • Like 1
Posted

Give us the link to the FMP Blog.

http://filemakerinspirations.com/2008/10/google-like-searches-in-filemaker/

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