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 287 karma points
    May 02, 2017 @ 14:38
    Damon
    0

    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 1470 posts 3427 karma points c-trib
    Oct 13, 2022 @ 15:30
    Simon Dingley
    0

    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:

Draft