Hi
I am writing a form where depending ion the type, different fields are valid. I have a List of field names that must have a value. I'd like to write a script something like below to vaildate the form
public static bool ValidateForm( ClientForm form)
{
List required = getRequiredFieldlist(form.Local.memrequiredFields); // call to split mem into list of req fields.
for (int i = 0;i < required.Count; i++)
{
if (form.GetField("txtLocation").DataValue == "")
{
return false;
}
}
return true;
}
This causes a compile error. I have tried
form.GetField<Metastorm.Runtime.Types.Text>("txtLocation");
but this doesn't work either.
Any thoughts?
Graham Field