Copied to clipboard

Flag this post as spam?

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


  • umbraco7newbie 2 posts 72 karma points
    Jan 23, 2020 @ 13:07
    umbraco7newbie
    0

    Umbraco property editor required field validation

    I have a grid property editor with text box property using

    <umb-editor model="control.titleControl"  />
    

    titleControl is intialised like

    $scope.control.titleControl = {
                view: '/umbraco/Views/propertyeditors/textbox/textbox.html',
                label: 'Title',
                description: 'Tile text',
                config: {
                    "maxChars": 200
                }, validation: { "mandatory": true }
            };
    

    I have tried passing validation property like that, but doesnot seem to have any effect on validation.

    Is there some other technique for enabling validation on umb-property using model values?

Please Sign in or register to post replies

Write your reply to:

Draft