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

quicksketch’s picture

You 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.

Marat’s picture

Thank 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.

quicksketch’s picture

It 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.

quicksketch’s picture

Category: feature » support
Status: Active » Fixed

Moving 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.