AnsweredAssumed Answered

Get (ActiveSelectionStart) Always Returns the Same Value in WebDirect

Question asked by on Feb 29, 2016
Latest reply on May 15, 2018 by dtcgnet

I have a solution that uses Get (ActiveSelectionStart). The solution works without issue on FileMaker Pro Advanced 14.0.4. WebDirect is giving me trouble.


When I use the solution for the first time on WebDirect, the value seems correct. However the same value is always returned afterwards until I upload a the file anew on the server. Then I get a seemingly correct value again the first time… and the same new value the remainder of the time.


FileMaker's documentation indicates Get (ActiveSelectionStart) works in WebDirect for edit fields only. The field is a global text field with repetitions formatted as an edit field with all repetitions displayed horizontally. The field has an onObjectEnter script trigger that launches a script that returns the cursor position using the Get (ActiveSelectionStart) function. The layout that displays the field uses the field's table as its context. The field's table has one record.


Anyone experienced the same issue and found a fix or workaround?


You help is much appreciated in this matter.