This commit is contained in:
2021-02-20 16:41:33 +00:00
parent bd115b679b
commit c10d376990
3 changed files with 9 additions and 4 deletions

View File

@@ -16,7 +16,11 @@ function addDataKeyNames(obj) {
}
export default {
// cache the form customization data if it's not already present
////////////////////////////////
// Cache the form customization data if it's not already present
// NOTE: FORM KEY **MUST** BE THE AYATYPE NAME WHERE POSSIBLE, IF NO TYPE THEN AN EXCEPTION NEEDS TO BE CODED IN
//SERVER FormFieldReference.cs -> public static List<string> FormFieldKeys
//
async get(formKey) {
if (
!window.$gz.util.has(window.$gz.store.state.formCustomTemplate, formKey)

View File

@@ -691,6 +691,8 @@ export default {
// NOTE: that in a form this should only be used with non stock-required fields, if they are already required they cannot be hidden
//
showMe(vm, formCustomTemplateFieldName) {
//TODO: CHILD COLLECTION MOD handle dot notation path indexed collection etc
// possibly it will just work since the key will match but double check
//special check for wiki field
//if read only then can't add any content and if no content then no reason to show it at all
if (formCustomTemplateFieldName == "wiki") {