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

Photos in a form

Avatar

Level 2

I have a form that requires the insertion of photos.  Seems easy enough, however I've gotten feedback from a few users stating that they inserted the incorrect photo OR added too many. There are spaces for 10 photos, many times only 3-4 are needed.  So I figured out a simple way to change the incorrect photo, but I cannot find a way to simply delete/remove when a photo has been mistakenly inserted into the image field.  For the time being, I've sent the users a blank photo field, it's just a plain white image and they have to insert it to make it look like there is nothing in that field.  Kind of a lame workaround....

Thanks for any pointers.

Cory

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

If you have a look at this example for detecting keystrokes: http://assure.ly/j1KdNq, you can script a Shift+Click to remove the photograph.

Also see thsi example for working with images: http://assure.ly/mcFrC6 and scaling images: http://assure.ly/jr8lp3.

Good luck,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

If you have a look at this example for detecting keystrokes: http://assure.ly/j1KdNq, you can script a Shift+Click to remove the photograph.

Also see thsi example for working with images: http://assure.ly/mcFrC6 and scaling images: http://assure.ly/jr8lp3.

Good luck,

Niall

Avatar

Level 2

Thanks Niall, the shift-click worked