Browse Source

fix(api): default form validation

re #3652

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3685/head
Pranav C 2 years ago
parent
commit
40baf5aa94
  1. 4
      packages/nc-gui/components/smartsheet/Form.vue

4
packages/nc-gui/components/smartsheet/Form.vue

@ -641,7 +641,7 @@ onMounted(async () => {
v-if="isVirtualCol(element)" v-if="isVirtualCol(element)"
class="!m-0 gap-0 p-0" class="!m-0 gap-0 p-0"
:name="element.title" :name="element.title"
:rules="[{ required: element.required, message: `${element.title} is required` }]" :rules="[{ required: isRequired(element, element.required), message: `${element.title} is required` }]"
> >
<SmartsheetVirtualCell <SmartsheetVirtualCell
v-model="formState[element.title]" v-model="formState[element.title]"
@ -657,7 +657,7 @@ onMounted(async () => {
v-else v-else
class="!m-0 gap-0 p-0" class="!m-0 gap-0 p-0"
:name="element.title" :name="element.title"
:rules="[{ required: element.required, message: `${element.title} is required` }]" :rules="[{ required: isRequired(element, element.required), message: `${element.title} is required` }]"
> >
<SmartsheetCell <SmartsheetCell
v-model="formState[element.title]" v-model="formState[element.title]"

Loading…
Cancel
Save