Is it possible to disable the code I've written for an onchange event and then re-enable it?
I've got a browser based form that populates a repeating table with a set of questions. The user can then select an answer from a list (Yes, No, N/A). Yes is the default answer. I then write the answers with the corresponding questions to a sharepoint list. I'd like to only write back the answers that have changed. Below is my code for determining if a change has been made. However, it is always triggered when I write the questions to my table. Is there a way to make it so that the Changed Event is inactive until all of the questions have been loaded the first time?
public void gpSection2_2E_1_Changed(object sender, XmlEventArgs e)
{
// Get a reference to the form's XmlNamespaceManager object.XmlNamespaceManager ns = this.NamespaceManager;
// See if values have been changed.if (e.Operation == XmlOperation.ValueChange)
{
e.Site.SelectSingleNode("my:Updated2.1", ns).SetValue("true");
}
}