I have a plugin that is needs to run whenever the current contact changes, ie, the user moves to a different contact. It does no updates, just reads info from the newly entered record, and displays it in a message box. Works fine.
Only problem is, if the user makes a change to the old record, and uses the record navigation arrows to switch to the next record before they tab out of the field, that new value appears in that same field in the newly entered record. And, when the user trys to add a new contact, the contents of the first record in the database get populated into that new record. And, when they try to duplicate a contact, the newly created contact ends up with values from the first record in the database, not the contact they were on when they tried to duplicate.
Could we please have a code sample of the correct way to process logic when the user switches to a different contact (or group or company), so that these things don't happen?
Thanks in advance,
Geoff Blood ("The ACT! Customizer" ) The New Hampton Group
ACT Development Partner Serving the ACC community since 1994