Asking a question
Is it possible to add image (or other multimedia) to the question content of some question (for example, adding image to the question of type radiogroup)?
@kunal-mohta You can do it via code, using the following survey.onAfterRenderQuestion event and custom properties. Here is the example. You will have to render image/video instead of buttons.
Thank you,
Andrew
@andrewtelnov Thanks for the response.
The "Show in Survey Creator" link isn't working for the above example. Is there a similar example for the Creator service?
@kunal-mohta Here is the example.
Please note, SurveyJS Creator is not under MIT license unlike SurveyJS Library. You can't just use it in your app without getting a developer license.
Thank you,
Andrew
Yes @andrewtelnov I am aware of that. My team is planning on purchasing the commercial license, that is why I am looking into all the required aspects before making a decision.
The example you pointed me to isn't exactly what I was looking for. What I need is to provide the user who is creating the form using the survey creator a way to add image to the question of any type.
@kunal-mohta I wrote before, that it is very close. You can add a custom property imagePath instead of popupDescription and render image instead of button.
Thank you,
Andrew
Understood. Thanks a ton!
@andrewtelnov In the example which you pointed me to (this one), after creating a new question and filling the popupdescription property, the More info button doesn't render in the designer tab, like it does in the default question ("What OS do you use?").
How can this be resolved?
Note - The button starts to appear when I reorder the new question.
@kunal-mohta I have updated the example in plunker.
Thank you,
Andrew