AnsweredAssumed Answered

Script to move selected text from one field to the next

Question asked by JosephB on Jun 12, 2010
Latest reply on Jun 14, 2010 by philmodjunk

Title

Script to move selected text from one field to the next

Post

Hello

 

Newbie here, first post, thanks in advance. 

 

I would like to set up a script that copies user-selected text from one field in the layout to a new, related record in a portal on the same layout.  A user would select some text with the mouse, hit a button, and that selected text would show up in the target field.  

 

I am ok with the script as far as pointing to one field or another, and setting up the button to run the script, but I can't seem to figure out how to get filemaker to "pick up" or "copy" text as selected by the mouse. 

 

I have tried to do this with SetField, insert text, and a few stabs at an applescript, but I keep ending up at the calculation dialogue, and can't figure out what calc would get me the selected text. 

 

Ideally I would avoid using the clipboard but I will if that is the only way. 

 

Thanks!

 

 

 

Thanks

Outcomes