01-11-2012 06:01 AM
I need to monitor the ContactFields.FieldChanged event to test the new value entered by the users. I can obtain the field value without an issue, but I need to be able to revert the field back to its original value (before the user entered the new value) if the new value isn't accetable. I don't see any kind of event args for the FieldChanged event. How can I accomplish this?
01-11-2012 06:29 AM
Unfortunately, there isn't a FieldChanging event, only FieldChanged, so it's after the change has occurred. If it's not a large number of fields that needs to be monitored, you could setup a routine that'd store the value of these fields when the CurrentContact changes (there's a CurrentContactChanged event) - you could then restore the stored value if the value the field has changed to is invalid.