Thank you for your post.
Create a script trigger for the Pop Up Menu field that selects the same field and halts the script. Assuming the field formatted for Pop-Up is named Status, then create a script with the following commands:
Go to Field [ Status ]
Then, in Layout Mode, select "Status", pull down the Format menu and select Set Script Triggers. Put a checkmark next to OnObjectModify and execute the script above. This will keep Status active when you select a new Status value.
Let me know if you need additional clarification.
Thank you, but there is a problem with this on FM Go.
I end up with a pop-up menu on the field which when you make a selection the pop-up menu remains open.
If i click somewhere else on the screen the pop-up menu does disappear.
I need to select from the pop-up menu, have the pop-up menu close,
then not goto the next field so that the resulting calculations can be read.
Any further suggestions are most welcome.
If you don't want to remain in the field, then use Go to Object, and select a field label. That is, go into Layout mode, click one of the field labels (popup field would be easiest to keep track of), and in the Inspector -> Position -> Position, give it the name "popup". Then, change your script to read:
Go to Object [ Object name: "popup" ]
When you change the value in the Pop-up field, the focus will go to the field label.
Thank you TSGal, but this did not work …
So, I tried Goto Object tab name that the field was in, with the intent of deselecting all fields.
That is, when I click on the tab it removes the activation from all the fields which is perfect.
However, Script Goto Object ( tab name ) and clicking on the tab yield very different results
and different results between FM Go and FM Pro 12 OS X.
So I added a couple of fields to a test scaffold:
On exit of pop up 1 in Red tab I trigger a script that goes to object RED ( a tab )
This continues as if nothing had happend. If you click on RED tab you
achive the result I am looking for: deselection of all fields.
hummm... don't appear to be able to attach a test database here.
The goal here is after data has been entered in a pop-up menu field to ideally deselect all fields so that calculations
that are displayed can be reviewed without distraction.
Any ideas or suggestions are most welcome.
Correction to my previous comment on last TSGal posting:
It does work correctly on FM Pro 12 OS X, but on FM Go the PopUp remains open.
So an additional click to empty space is required to dismiss the PopUp.
Not quite as clean as it should be since it implies that a PopUp selection is still required
and no matter how many times you select it, the PopUp remains.
I'm running into the exact same issue with Go. A pop-up formatted field is not behaving properly and can only be considered a bug. After selecting a value in a pop-up in Go, Go will force focus to go to the first tab in the tab sequence. If all tab stops are removed, focus will remain in the pop-up and select list will still be open. So far, I have found no way to get around this bug.
I have the same issue - switched layout - committed records - gone to another field - nothing gets me out of the pop-up menu?? Thoughts?
Ok - turns out the issue is tab order - if they popup field is the first field in your tab order it opens automatically when switch between records in iOS for some reason. Simply clearing the tab order from your iOS layouts will solve this problem - thanks to Chad Novotny @ 12ti Studios and Ronnie Rios @ FM for pointing me in the right direction.
Removing all tab stops on a Go layout works to some degree but if you do that tapping pop-up or drop down fields typically results in staying in the field (with the value list expanded and displayed) even after a value is selected until you tap in the open. Not fatal but certainly not elegant.
I'm using a OnModify script trigger with the field so its not an issue - but good point for normal field editing. I really think this behavior is a bug since it causes FMGO to act in unexpected ways. If you want to have it enter the first field when a record loads you could add a script trigger to control it.
I've taken to removing the tab order and then using OnObjectModify to perform a single step script: Commit Records.