This commit is contained in:
@@ -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");
|
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 (formFieldItem["type"] != null)
|
||||||
{
|
{
|
||||||
if (!MasterFormField.Custom)
|
if (!MasterFormField.Custom)
|
||||||
|
|||||||
Reference in New Issue
Block a user