Browse Source

fix: form view field validation error message, use alias name instead of original field name

Co-authored-by: gitstart <gitstart@gitstart.com>
Co-authored-by: gitstart <gitstart@users.noreply.github.com>
Co-authored-by: frankmagoba <franklinmagoba4@gmail.com>
Co-authored-by: gitstart_bot <gitstart_bot@users.noreply.github.com>
Co-authored-by: Mayomi Ayandiran <ayandiranmayomi@gmail.com>
pull/4933/head
gitstart 2 years ago
parent
commit
a49374e809
  1. 2
      packages/nc-gui/components/smartsheet/Form.vue

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

@ -679,7 +679,7 @@ watch(view, (nextView) => {
v-else
:name="element.title"
class="!mb-0"
:rules="[{ required: isRequired(element, element.required), message: `${element.title} is required` }]"
:rules="[{ required: isRequired(element, element.required), message: `${element.label} is required` }]"
>
<LazySmartsheetCell
v-model="formState[element.title]"

Loading…
Cancel
Save