Hi all, I'm testing my module with chronoforms 8. I need to generate a PDF that, in a special field, displays the image uploaded by the user.
I use the syntax {data:upoad}, however I only see the file name but not the image.
Does anyone know how to do this?
Thank you.
Cristiano
Hi,
You need to use HTML, and use an <img tag:
<img src="http://www.domain.com/path/to/image.png" width="100" height="100" />
Max
ChronoForms developer...
ChronoForms v8 is out, do you have any suggestions? please let us know.
Thanks Max.
The image, however, is not static but dynamic, so the name changes with each upload. How can I do this?
C.
rbock
posted Sep 19, 2023 at 18:21
<img src="/path/to/image/{data:YOURIMAGEUPLOAD}" width="100" height="100" />
as rbock showed, you need to build the source attribute using the form shortcodes like {data:something} or the {var:xxx} in case you are using an uploaded image, you can find this info when you enable the form debug, it will be shown in the debug report after the form is submitted
Max
ChronoForms developer...
ChronoForms v8 is out, do you have any suggestions? please let us know.