Thank you for the post.
“Any script that uses a portion of field data should include the Set Selection script step because FileMaker WebDirect can't detect selections made by the user. This includes script steps such as Cut, Copy, Paste, Clear, Insert Text, Insert Calculated Result, Insert From Last Visited, Insert From URL, Insert Current Date, Insert Current Time, Insert Current User Name, and Find Matching Records.”
The above is from page 21 of the FileMaker® 13 WebDirect Guide.
Thank you. That works perfectly. Set it to length of text + 1.