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

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

Recommended Posts

Posted

Hello,

I have a basic list view with a search box at the top. It functions very well but in terms of user friendliness I would love to make it so the return/enter key will perform the search script after writing in the search box. Is this possible? How do I activate scripts with keys.

Topher

Posted

It sounds as if you have a global field at the top of the list layout that has a button next to it. The button runs a script that enters find mode and sets a field to the global and performs the find. It might even do several new requests in different fields looking to match on any one of the requests. It's a web-like find interface.

So, I don't see a way to make this equal to the Enter key.

If you change the find interface so that you're in Find and paused, then the Enter key would Continue the script and perform the Find.

Posted (edited)

It's possible with the Enter key (not Return). Just make the searchbox field itself a button that runs the script. Start the script by going to the searchbox field and pausing.

ADDED: It's possible to make it work with the Return key too, but it would require an event-triggering plugin.

Edited by Guest
Posted (edited)

Thank you for your help. That does seem to be the solution, to make the field the button and have it pause indefinitely. I succeeded by doing that, however, with almost every possible combination of the behavior of the field I cannot get the return key to resume the script. What happens is that when I hit return it enters a carriage return (then I change the behavior), or it selects the entire contents of the field. It does, however, work to hit the enter key instead of the return key to continue the rest of the script. Do you have any ideas?

I've tried added a script step so that after the pause it moves to the next field, or a hidden object but to no avail.

Thanks again for your help.

Edited by Guest
Posted

My previous post was misleading - I have mistakenly switched the two keys around. You cannot resume a script using the Return key when you are in a field, unless you are using a plugin and the field is formatted to go to next object upon hitting Return. See also:

http://fmforums.com/forum/showtopic.php?tid/184430/post/239829/#239829

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