I have a portal (that's set to auto-sort) and after a new value is entered, a couple of scripts fire that do their thing and takes the focus away from the portal. However, with the additional record that's added to the portal, the original child record's record doesn't end up back in the same portal row number as before because of the portal's auto-sorting so even if I were to create a variable with the portal row number before those scripts fire, it won't do any good after the return to the portal since the stored value won't be the same.
Before the scripts fire: focus is on Portal Row 3
Apple (portal row 1)
Brownie (portal row 2)
Carrot (portal row 3)
Craisin (portal row 4, etc.)
Added record, scripts fire, then to same portal
...so as you can see, with the addition of Banana it causes Carrot to change from Portal Row 3 to Portal Row 4.
Is there way to capture the field's value--or maybe its UUID--instead of its portal row number, so when returning to the layout, a script would return the focus back to the original value (Carrot)?
TIA for your help!