Copied to clipboard

Flag this post as spam?

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

  • Damon 217 posts 288 karma points
    May 02, 2017 @ 14:38

    Make Alternative text (optional) mandatory in media picker in RTF

    When adding image using media picker to a rich text field, there is a filed to add alt text called Alternative text (optional). Has anyone made this a mandatory field, or know a way to do this?

    Thanks a lot,

  • Simon Dingley 1472 posts 3429 karma points c-trib
    Oct 13, 2022 @ 15:30
    Simon Dingley

    I am actually trying to solve this at the moment, too late for you I'm sure, but I will share it in case it's helpful to anyone else and if they can help me solve the related issue I am experiencing…

    I can make it mandatory by editing the view file /Umbraco/Views/common/overlays/mediaPicker/mediapicker.html and adding the required attribute to the input. The problem is that whilst it prevents the dialog from being submitted it does not offer any sort of visual feedback and seems to be somehow suppressing the standard browser feedback for required fields. If anyone knows of a way to rectify this or another approach I'd be grateful.

Please Sign in or register to post replies

Write your reply to: