This commit is contained in:
2019-12-06 00:06:28 +00:00
parent 54e6eea0ab
commit bfb7d293d1
5 changed files with 81 additions and 53 deletions

View File

@@ -358,8 +358,8 @@ export default {
formCustomTemplateFieldName
]);
//templateItem.required is a string value, not a boolean value
if (templateItem === undefined || templateItem.required !== "true") {
//templateItem.required
if (templateItem === undefined || templateItem.required !== true) {
return false;
}
@@ -395,15 +395,14 @@ export default {
// dataKey: "c2"
// fld: "WidgetCustom2"
// hide: "false"
// required: "true"
// required: true
// type: "text"
if (vm.formState.loading) {
return false;
}
//templateItem.required is a string value, not a boolean value
if (templateItem.required !== "true") {
if (templateItem.required !== true) {
return false;
}
@@ -535,12 +534,12 @@ export default {
formCustomTemplateFieldName
]);
//templateItem.required is a string value, not a boolean value
if (templateItem === undefined || templateItem.hide !== "true") {
if (templateItem === undefined || templateItem.hide !== true) {
return true;
}
//Only here if we have a record in the custom template for this particular field and it's set to hide:"true"
//Only here if we have a record in the custom template for this particular field and it's set to hide:true
return false;
},