This commit is contained in:
2021-02-22 18:23:39 +00:00
parent 40be953fe6
commit 7d11e0f46d
3 changed files with 6 additions and 16 deletions

View File

@@ -48,7 +48,7 @@ function isNumber(n) {
function getControl(vm, ref) {
let ctrl = vm.$refs[ref];
//I don't think this is reauired anymore
//I don't think this is required anymore
// if (ctrl === undefined) {
// //it's either a sub field in custom fields component or it's a coding error
// let customFields = vm.$refs["customFields"];
@@ -712,13 +712,10 @@ export default {
//See if control templateFieldName is in server required fields collection
//this is a collection of both custom field definitions and standard form fields that are required
//since all names are unique can just filter out the one we need by name which will inherently ignore custom fields by default
//de-lodash
// let templateItem = window.$gz. _.find(template, [
// "fld",
// formCustomTemplateFieldName
// ]);
let templateItem = template.find(z => z.fld == formCustomTemplateFieldName);
let templateItem = template.find(
z => z.fld.toLowerCase() == formCustomTemplateFieldName.toLowerCase()
);
if (templateItem === undefined || templateItem.hide !== true) {
return true;