H
HumanJHawkins
I have a form with a "Notes" subfield. The notes subfield requires an
"Add Note" button so that a function can be run to drop the user name
and date into the note. Because of this, the user is not typing
directly into a Note field, and no automatic saving of the note record
happens.
So, if a user types a note and then goes back to the main form and
moves to a different record, their note text is still in the edit box
waiting for them to click the "Add Note" button. This of course would
save the note to the wrong record.
I could clear the note text in "On current", but this would
potentially throw out a big hunk of their text without warning. And it
would go off if they refreshed the current record, which is
undesirable. I could ask if they want to save OnCurrent, except that
it is likely they would be OnCurrent of a different record in many
cases.
So what I need is an event that triggers before leaving a record,
whether or not the record has changed... None of the events I can find
on the form seem to do that from the documentation.
Is there an event I am missing, or is there a better way to go?
Thanks!
"Add Note" button so that a function can be run to drop the user name
and date into the note. Because of this, the user is not typing
directly into a Note field, and no automatic saving of the note record
happens.
So, if a user types a note and then goes back to the main form and
moves to a different record, their note text is still in the edit box
waiting for them to click the "Add Note" button. This of course would
save the note to the wrong record.
I could clear the note text in "On current", but this would
potentially throw out a big hunk of their text without warning. And it
would go off if they refreshed the current record, which is
undesirable. I could ask if they want to save OnCurrent, except that
it is likely they would be OnCurrent of a different record in many
cases.
So what I need is an event that triggers before leaving a record,
whether or not the record has changed... None of the events I can find
on the form seem to do that from the documentation.
Is there an event I am missing, or is there a better way to go?
Thanks!