diff --git a/packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index/index.vue b/packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index/index.vue index 6658252457..4e8d4083ad 100644 --- a/packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index/index.vue +++ b/packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index/index.vue @@ -182,14 +182,13 @@ const onDecode = async (scannedCodeValue: string) => {
- @@ -201,7 +200,7 @@ const onDecode = async (scannedCodeValue: string) => { :data-testid="`nc-form-input-cell-${field.label || field.title}`" :class="[ `nc-form-input-${field.title?.replaceAll(' ', '')}`, - { 'layout-list': parseProp(field?.meta)?.isList }, + { 'layout-list': parseProp(field?.meta)?.isList, 'readonly': field?.read_only }, ]" :column="field" :edit-enabled="!field?.read_only" diff --git a/packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index/survey.vue b/packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index/survey.vue index bac5a0c11b..0724623a40 100644 --- a/packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index/survey.vue +++ b/packages/nc-gui/pages/index/[typeOrId]/form/[viewId]/index/survey.vue @@ -282,12 +282,14 @@ onMounted(() => { - { v-else v-model="formState[field.title]" class="nc-input h-auto" - :class="parseProp(field?.meta)?.isList ? 'layout-list' : ''" + :class="{ 'layout-list': parseProp(field?.meta)?.isList, 'readonly': field?.read_only }" :data-testid="`nc-survey-form__input-${field.title.replaceAll(' ', '')}`" :column="field" :edit-enabled="!field?.read_only"