It would be useful sometime to attach an image or any type of media to some components. For example, I may ask the user to rate or to write something in the textfield about an image that should appear above the options or the textfield.
Any idea how to do that? Thank you
Comments
Comment #1
quicksketchYou can use HTML in several of the fields (I think descriptions allow you to use HTML), or you could use a markup component. However you can't and likely won't be able to attach files to components. I would suggest editing the node and using FileField or Upload module and just attach them to the node.
Comment #2
Marat commentedThank you @quicksketch for your suggestion, I tried using HTML in the description filed but I couldn't. It may be because I am newbie in programing.
Comment #3
quicksketchIt looks like Webform runs the default input format on descriptions, so you may need to allow
<img>tags in your default input format (usually "Filtered HTML") at admin/settings/filters. Otherwise using the "markup" component will definitely work, as long as you use an input format that allows HTML when configuring the component.Comment #4
quicksketchMoving this to a support request, since it's not likely that we'll add file attachments to individual components. Please set back to active if you have further questions.