Jump to content

Insert Calculated Result losing focus


This topic is 2541 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.