Suggestion T5902
Visible to All Users

Image Alt text

created 4 years ago

Hi,

I am looking to display a static image in my survey, but cant seem to figure out how to put in the Alt text for the image, tried this:

{
          "type": "image",
          "name": "chequeImage",
          "imageLink": "assets/images/cheque.svg",
          "text": "This text will (hopefully) be in the alt attribute of the image",
          "visibleIf": "{provideBankDetails} = 'yes'",
          "imageWidth": "300%"
        }

it did not work!

Please help…

Regards,
Prashant.

Answers approved by surveyjs Support

created 4 years ago

Hello,

Right now there is no such a functionality in the image question type. But I've implemented it via the https://github.com/surveyjs/survey-library/commit/697da825e8ac08755d0cc55374667689cc24842f commit and you can use the "text" property from the nearest minor update.

Thanks, Serge
SurveyJS Team