diff --git a/ayanova/src/api/form-custom-template.js b/ayanova/src/api/form-custom-template.js
index 3c75c600..84ace6e9 100644
--- a/ayanova/src/api/form-custom-template.js
+++ b/ayanova/src/api/form-custom-template.js
@@ -40,5 +40,25 @@ export default {
resolve();
}
});
+ },
+ getFieldTemplateValue(formKey, fieldKey) {
+ if (fieldKey === undefined) {
+ throw "ERROR form-custom-template::getFieldTemplateValue -> fieldKey not specified for template for form [" +
+ formKey +
+ "]";
+ }
+
+ var template = window.$gz.store.state.formCustomTemplate[formKey];
+ if (template === undefined) {
+ throw "ERROR form-custom-template::getFieldTemplateValue -> Store is missing form template for [" +
+ formKey +
+ "]";
+ }
+
+ //_https://lodash.com/docs#find
+ //Note that not every field being requested will exist so it's valid to return undefined
+ var templateItem = window.$gz._.find(template, ["fld", fieldKey]);
+
+ return templateItem;
}
};
diff --git a/ayanova/src/views/customize.vue b/ayanova/src/views/customize.vue
index 1c3481b1..64f41210 100644
--- a/ayanova/src/views/customize.vue
+++ b/ayanova/src/views/customize.vue
@@ -12,7 +12,9 @@
READONLY: {{ formState.readOnly }}
-->
-
+