diff --git a/ui/components/Form/FormLayout.vue b/ui/components/Form/FormLayout.vue
index bc702ea8..0a1d1651 100644
--- a/ui/components/Form/FormLayout.vue
+++ b/ui/components/Form/FormLayout.vue
@@ -55,7 +55,12 @@ export default {
return this.fields.find(df => df.fieldname === fieldname);
},
shouldRenderField(fieldname) {
- const hidden = Boolean(this.getDocField(fieldname).hidden);
+ let hidden;
+ try {
+ hidden = Boolean(this.getDocField(fieldname).hidden(this.doc));
+ } catch (e) {
+ hidden = Boolean(this.getDocField(fieldname).hidden) || false;
+ }
if (hidden) {
return false;
diff --git a/ui/components/controls/Table.vue b/ui/components/controls/Table.vue
index 4f4adeb0..b9472af0 100644
--- a/ui/components/controls/Table.vue
+++ b/ui/components/controls/Table.vue
@@ -4,12 +4,10 @@
-
+
#
-
- {{ column.label }}
-
+ {{ column.label }}