You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If not, the user should be notified after validation, and need to show up an error about the required file.
It is not possible with the current behavior of prefilling default values.
Let's consider different options of defaultFormStateBehavior.
Thank you alekseyBatuhtin, I was just about to write about the exactly same problem, also for a custom file uploader. We also need never behaviour for populate of experimental_defaultFormStateBehavior.
Because of this, we've implemented custom solution that relies on patch-package which is not optimal. You can take a look at it here.
Prerequisites
What theme are you using?
core
Is your feature request related to a problem? Please describe.
Hi! I've met the next situation.
Schema:
uiSchema:
CustomFileUploader
own widget which consumes as data, an array of File metaWhat I Want to get:
The user should attach a minimum 1 file:
If not, the user should be notified after validation, and need to show up an error about the required file.
It is not possible with the current behavior of prefilling default values.
Let's consider different options of defaultFormStateBehavior.
Link to playground
formData:
Link to playground
formData:
Describe the solution you'd like
What I would like to get:
Example:
What do you think about this?
Describe alternatives you've considered
No response
The text was updated successfully, but these errors were encountered: