formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

Display image in form

Open aminmc opened this issue 8 years ago • 12 comments

Hello

I would like to display an image within a form as a field...is this possible? Does this require a custom component?

Thanks

aminmc avatar Aug 24 '18 12:08 aminmc

Hello Amin,

This is William with the Form.io support team. Thanks for reaching out!

Displaying an image is possible with our Content component.

Here is a video to show you how to add an image as well. https://www.screencast.com/t/RqJ0eBgC

Please let me know if you have any further questions or concerns.

Thanks,

William Gay Form.io Support

wag110894 avatar Aug 24 '18 21:08 wag110894

Thank you @wag110894 for your help. Will look at the Content component.

aminmc avatar Aug 25 '18 05:08 aminmc

how can we upload image without applying url ??

puzaa avatar Jan 27 '19 16:01 puzaa

What do you mean "without applying url"?

travist avatar Jan 28 '19 15:01 travist

What do you mean "without applying url"?

Like type of screenshot attachment........

puzaa avatar Jan 28 '19 16:01 puzaa

You can use Base64 upload, which is a way to upload without providing a url.

travist avatar Jan 29 '19 15:01 travist

Hello @wag110894 and @travist , Content component has been updated recently and it seems it do not support uploading of images anymore the way you prescribed it. I am receiving an error in console. filerepository-no-upload-adapter: Upload adapter is not defined. How can we define an upload adapter for formio content component?

Appreciate your help.

Thanks

noman115pk avatar Mar 12 '19 07:03 noman115pk

Hi all,

How to display an image in the form.io? Let's say that I have two controls: the text one where the image url needs to be entered and the HTML element component where this image should be displayed. The final goal is to achieve this dynamically.

The use case: HR -> Based on the selected Employee ID all dependent fields will be populated too. One of them will contain the url of employee's image (text field) and that value should be passed to the another HTML control and show how he/she looks like.

If you have any idea please help. I'm a new to this matter.

Rocket-Rocket avatar Jul 09 '19 13:07 Rocket-Rocket

Screencast link is dead

nathanieltagg avatar Jan 08 '20 18:01 nathanieltagg

Hell @nathanieltagg,

Sorry about that. Here is a new video of how to display an image inside a form: https://share.getcloudapp.com/Jru7OPxO

I hope that this helps.

wag110894 avatar Jan 08 '20 18:01 wag110894

@wag110894 The video link : "This item has exceeded its view limit!"

ak99372 avatar Jul 15 '21 21:07 ak99372

Apologies. Here you go! https://user-images.githubusercontent.com/25830796/125980138-33bb4090-45da-4fc1-affd-703673f9e6f1.mov

wag110894 avatar Jul 16 '21 16:07 wag110894