Expand my Community achievements bar.

Deleting placed image at user end

Avatar

Level 3

Can a User delete an image they've placed in an image field? I have 'embed image data' ticked on.

2 Replies

Avatar

Level 10

Hi,

The user interface with an imagefield is just click and browse to an image. The user cannot select an image and delete it like text. You would need to include a reset button, maybe specifically targeting the imagefield.

Have a look at the example here: http://assure.ly/mcFrC6.

Hope that helps,

Niall

Avatar

Level 10

Hi,

you also can use a script in the enter events of the field to delete the image under specific circumstances.

So you don't need an extra button.

Add this into the enter and mouseEnter event of the image field. It's written in FormCalc not JavaScript.

If the user presses down Ctrl + Shift when he enters the field, the image is deleted.