This commit is contained in:
2019-07-17 22:57:51 +00:00
parent 323c2d8849
commit 4e7c88ff0a

View File

@@ -217,6 +217,13 @@ namespace AyaNova.Biz
AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "Template", $"Template array item {i}, \"hide\" property value of \"{fieldHideValue}\" is not valid, this field is core and cannot be hidden");
}
//validate if it's a custom field that it has a type specified
if (MasterFormField.Custom && formFieldItem["type"]==null){
AddError(ApiErrorCode.VALIDATION_INVALID_VALUE, "Template", $"Template array item {i}, \"type\" property value is MISSING for custom filed, Custom fields MUST have types specified");
}
if (formFieldItem["type"] != null)
{
if (!MasterFormField.Custom)