var strError = "There was an error adding the attachment, most likely caused by the form reloading in response to a design change or because the file may be in use by another program. Please try adding the attachment again, after correcting the issue.";
if (getScriptHostQI("IGrooveFormsToolUIDelegate").DisplayYesNoMessageBox("Are you sure you want to remove this contact? This operation cannot be undone.", "Remove Contact"))
removeContact(g_ContactContextMenuFieldName);
break;
}
}
}
}
function removeContact(i_FieldName)
{
var Contact = g_RegisteredContactFields[i_FieldName];
// Unregister the contact.
unregisterContact(Contact, i_FieldName);
// Display the contact information for a contact.
displayContactInfo(null, i_FieldName, true);
// Set the dirty bit when a contact is removed.
setIsDirty();
// Set the attribute on the field so we know that this is empty.
var ContactField = document.getElementById(i_FieldName);