Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • iNETZO 133 posts 496 karma points c-trib
    Feb 06, 2020 @ 13:57
    iNETZO
    0

    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

  • Tom Pipe 14 posts 100 karma points c-trib
    Feb 21, 2020 @ 19:10
    Tom Pipe
    100

    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

  • iNETZO 133 posts 496 karma points c-trib
    Feb 21, 2020 @ 21:17
    iNETZO
    0

    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

  • iNETZO 133 posts 496 karma points c-trib
    Feb 24, 2020 @ 18:41
    iNETZO
    0

    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

    $scope.removeControl($scope.area, $scope.control.$index -1);
    

    to

    $scope.removeControl($scope.area, $scope.area.controls.length - 1);
    

    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

  • Tom Pipe 14 posts 100 karma points c-trib
    Feb 24, 2020 @ 20:00
    Tom Pipe
    0

    Hi iNETZO,

    Great spot!

    Am trying to find time to address the minor issues, thanks for letting me know of this one!

Please Sign in or register to post replies

Write your reply to:

Draft