Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Help regarding file attachment

Avatar

Level 9

Hello All,

I am developing a form where the user will add details about a person.At the end there would be a button called "Add Photo" when the user clicks the button the add files dialogue will open. The user can browse through the photo and can add the Photo.The max size limited should be 700 KB.After the user has added the photo the photo would be shown as a thumb nail view. Also the user can change the photo later on .I am also thinking about : If the user clicks on the photo it would be displayed in its original size and one close button will appear on the bigger photo on the top right hand side corner.If the user clicks it then the photo will become thumb nail view once again. Is it possible to design in LiveCycle Designer 8.2 or am being too optimistic ?

Thanks.

Bibhu.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Bibhu,

Here is an example:

https://acrobat.com/#d=jTxbDqy4gH9r2oALyXQQhQ

2010-12-10_09-02-25.png

Check out the script in the layout_ready event of the larger image.

Good luck,

Niall

View solution in original post

5 Replies

Avatar

Level 10

Hi Bibhu,

The closest I think you will get to it is to use an imageField object for the thumbnail. The user would click this to add their image.

Then a separate button would show/hide a subform that contains an image object with larger dimensions. This image object would access the value of the imageField, so as to show the thumbnail at a larger scale.

There are a couple of image manipulation examples here: http://www.assuredynamics.com/index.php/code-solutions/image-solutions/

Good luck,

Niall

Avatar

Level 9

Hello Niall,

Thanks for thr link. But I did not find out how to add an image. Could you please explain a bit more ?

Thanks.

Bibhu.

Avatar

Correct answer by
Level 10

Hi Bibhu,

Here is an example:

https://acrobat.com/#d=jTxbDqy4gH9r2oALyXQQhQ

2010-12-10_09-02-25.png

Check out the script in the layout_ready event of the larger image.

Good luck,

Niall

Avatar

Level 9

Thank You both Radzmar and Niall. It solved my problem.

Thanks.

Bibhu