01-29-2023 09:26 PM
The below works, it outputs an empty value to the diagnostic console. However if I try to check if the siteManager field is empty, I get an error.
// Returns the current FormInstance
CustomActionForm thisForm = args.FormInstance;
// Initialize a new form modifier for changing a field.
FormModifier formModifier = thisForm.CreateUnityFormModifier();
// Return the name of the form
string formName = thisForm.FormTemplate.Name;
if (formName == "Trainee Development Review")
{
ValueField fieldValue = thisForm.AllFields.ValueFields.Find("sitemanager");
app.Diagnostics.WriteIf(Diagnostics.DiagnosticsLevel.Verbose,
String.Format("SiteManager is empty? = {0}", fieldValue));
}
01-30-2023 04:28 PM
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.