Jump to content
Sign in to follow this  
Mafia2020

Google Search Style Search Field (Problem)

Recommended Posts

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.

Share this post


Link to post
Share on other sites

Give us the link to the FMP Blog.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Give us the link to the FMP Blog.

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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