I can't get the validation to work in Umbraco 8.2 and higher and DocTypeGridEditor 1.1.0 and lower.
When i create a simple doctype with two fields, name and e-mailaddress, and enable validation on these fields, in DTGE the fields get a red border but you can submit the form without gettings validation errors.
Thank you very much for your reply and for creating this PR! In my case it works like a charm! The validation messages are in English (we use the Dutch translation in the backoffice for this project) but that does not matter. Keep up the good work!
I had an little issue when clicking on the close button of the editordialog. The first control in the grid got deleted instead of the empty editor.
Therefore I made a change to doctypegrideditor.controllers.js on line 98.
I changed
Now the latest added control is deleted if it's empty.
For some reason $scope.control.$index is always 1, so always the first grid element got deleted.
Validation does not work
Hi,
I can't get the validation to work in Umbraco 8.2 and higher and DocTypeGridEditor 1.1.0 and lower.
When i create a simple doctype with two fields, name and e-mailaddress, and enable validation on these fields, in DTGE the fields get a red border but you can submit the form without gettings validation errors.
Is there build in validation support for DTGE?
Best regards,
iNETZO
Hi iNETZO,
This is a known issue with DTGE unfortunately.
The good news is, I have submitted a PR to get validation working. There are a couple of issues to resolve, but it's imminent!
Keep an eye on the PR in the DTGE github repo
Hi Tom,
Thank you very much for your reply and for creating this PR! In my case it works like a charm! The validation messages are in English (we use the Dutch translation in the backoffice for this project) but that does not matter. Keep up the good work!
Best regards,
iNETZO
Hi Tom,
I had an little issue when clicking on the close button of the editordialog. The first control in the grid got deleted instead of the empty editor. Therefore I made a change to doctypegrideditor.controllers.js on line 98. I changed
to
Now the latest added control is deleted if it's empty. For some reason $scope.control.$index is always 1, so always the first grid element got deleted.
Best regards,
iNETZO
Hi iNETZO,
Great spot!
Am trying to find time to address the minor issues, thanks for letting me know of this one!
is working on a reply...