Jump to content

How to select contents of second instance of field?


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

Recommended Posts

I have a field that is used on two different tab panels of a layout. My script needs to select the second occurrence and then do a Select All so the user can just type over the contents. I use Go To Object to display the correct panel, but how can I select the contents? A Select All doesn't work because a Go To Field hasn't been performed. But a Go To Field causes the first occurrence of the field to be selected. A Catch 22?

From the FMP help:

If, however, the same field appears elsewhere on the layout and the script finds that field first, the tab panel with that same field will not come forward. Instead, assign an object name to the field and use the Go To Object script step to move to that instance of the field.

Thanks in advance for any help.

UPDATE: I've solved my own problem. Select All does work. I had too many disabled elements in my test script and didn't notice an extra Go To Field [ ]. Sorry for the false alarm. Hopefully, this post will assist others.

Link to comment
Share on other sites

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