Copied to clipboard

Flag this post as spam?

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


  • Morten 105 posts 345 karma points
    Mar 23, 2017 @ 13:12
    Morten
    0

    Make mandatory elements have a red border

    Hello!

    Is it possible to make all the mandatory properties have a red border, so the user knows they're mandatory? I created a new folder, a new CSS file, and the package.manifest file inside the App_Plugins folder. I then did this:

    input[ng-required='model.validation.mandatory'][required] {
        border: 3px solid red;
    }
    

    Basically makes the border red on all elements that have the ng-required="model.validation.mandatory" attribute and that are required. However, I noticed something. Not all elements have a mandatory required class or attribute in the view, so I can't possibly do it that way.

    I started looking into the $scope from the Angular backoffice of Umbraco, and I noticed some elements have the model.validation.mandatory attributes (mandatory: true). However, some properties like Rich Text Editor in Vorto does not have them (or anything that even looks like I could use it).

    I am willing to override any Umbraco or Vorto configuration to get this working.

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft