From 674d839cd7d4881423c3540e38ffeaf97c8d2bb8 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 6 Dec 2019 20:16:29 +0000 Subject: [PATCH] --- ayanova/src/views/customize.vue | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/ayanova/src/views/customize.vue b/ayanova/src/views/customize.vue index b63bf50d..d3579283 100644 --- a/ayanova/src/views/customize.vue +++ b/ayanova/src/views/customize.vue @@ -12,9 +12,16 @@ READONLY: {{ formState.readOnly }}
--> -
+ @@ -62,8 +69,6 @@ item-value="id" :label="lt('FormfieldDataType')" > - - {{ item }} @@ -138,7 +143,8 @@ export default { appError: null, serverError: {} }, - rights: window.$gz.role.defaultRightsObject() + rights: window.$gz.role.defaultRightsObject(), + tempTemplate: window.$gz.store.state.formCustomTemplate["widget"] }; }, //WATCHERS @@ -266,7 +272,11 @@ function initDataObject(vm) { //handle non-existent template item (expected) if (templateItem === undefined || templateItem === null) { - templateItem = { required: false, hide: false, type: "text" }; + templateItem = { + required: false, + hide: faf.custom ? true : false, //hide if custom because it's not set to display if it's not present, all others are stock fields + type: "text" + }; } // var canHide=faf.hideable && templateItem.required!==true;