-
Notifications
You must be signed in to change notification settings - Fork 387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DynamicForm - controls are shown with error messages even if the values are assigned #1586
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
I am seeing this issue as well, but only when editing/opening an existing item, tested in both a web part and form customizer. When creating a new item it is working correctly for me. |
1 similar comment
I am seeing this issue as well, but only when editing/opening an existing item, tested in both a web part and form customizer. When creating a new item it is working correctly for me. |
@sallaadithya @Fantasticles I have resolved this issue, will be creating a new PR soon. //Nishkalank Bezawada |
Hello @sallaadithya & @Fantasticles, SolutionIn
This
Resulting in having the changedValue always set to null as per above condition. So, by setting the state as below, the issue will be resolved.
Thanks, |
Hi @NishkalankBezawada, @joaojmendes, Thanks for fixing the issue, resolved the issue on EDIT form. However, for a new item, error messages appear by default. They should appear only after the focus is out off the control. |
New release just published, closing |
Category
[ ] Enhancement
[x] Bug
[ ] Question
Version
Please specify what version of the library you are using: [3.15.0-beta.5500687]
Expected
For a column which is a 'Required' one, it should allow to enter a value. After focus is lost, if user doesn't enter any value, then it should show the error message as "You can't leave this blank".
Observed Behavior
On load of the form, the error message 'You can't leave this blank' is shown for all the columns which are set as 'Required'. This is confusing for the already existing list item which has got values.
Steps to Reproduce
Create a list, create few columns with data type 'Single line of Text', mark them as Required while creating. Use Dynamic form to create a list item, observe the columns having error message when the form loads for the first time. The behavior is the same for the existing list item (Editing list item).
Thanks!
The text was updated successfully, but these errors were encountered: