This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user