July 23, 201213 yr 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.
July 23, 201213 yr 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
July 23, 201213 yr Author Give us the link to the FMP Blog. http://filemakerinspirations.com/2008/10/google-like-searches-in-filemaker/
Create an account or sign in to comment