Ron Cates Posted April 13, 2017 Share Posted April 13, 2017 I'm working on a merge letter type interface. I have a list of merge field choices in a portal next to a text field. I would like to be able to insert into the text field when clicking on a button on the portal row. But I just realized when clicking a button in a portal it pulls the cursor out of the currently active field since I'm actually selecting a related record. Thus Insert Calculated Results will not work to insert the merge field name at the current cursor position. Any suggestions on how to work around this issue? Link to comment Share on other sites More sharing options...
comment Posted April 13, 2017 Share Posted April 13, 2017 Attach an OnObjectExit script trigger to the target field, and have the script set variables to the active selection start and size. Have the inserting script start by restoring the selection in the target field, using the above variables. Link to comment Share on other sites More sharing options...
Ron Cates Posted April 14, 2017 Author Share Posted April 14, 2017 And there it is. Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 2541 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now