Help with Implementing Validation for Custom Plugin Form Components #10582
chungchunwang
started this conversation in
Contribute
Replies: 1 comment 1 reply
-
Hey @chungchunwang It may be because you're not making use of Looking at the // Skip if the value is the same
if (!skipCheck && fieldState.value === value) {
return true
} Perhaps the validation is being skipped in your case - this is just a guess though. You could try Setting the field value to see if that helps. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I work on the File Upload Plugin, and I am trying to add validation as per this issue. I have gotten validation working by referencing the Field component, but currently the error text does not show up when the form is submitted, only after the value is saved using the fieldApi. Do you know how I could solve this issue? Here is the relevant code: https://github.com/chungchunwang/Budibase-File-Upload/blob/master/src/Component.svelte
Beta Was this translation helpful? Give feedback.
All reactions