I have a form with a file upload button that uploads a photo. The filename is saved in USE:Photo, and there is a "Display" control on the form that displays a thumbnail of the photo, and all works fine.
The problem is that I want a "Clear" button that removes the contents of the USE:Photo field. I have put a button on the form and in the Client side embed, I have put:
USE:Photo=''
p_web.SSV('USE:Photo',USE:Photo)
I have also "RESET" the display of USE:Photo on the clear button.
When I click on the Clear button, the thumbnail and filename are cleared on screen, but when the form is Saved, the empty USE:Photo field is not saved, so when you reopen the form, the photo is still there.
What am I doing wrong?
Thanks
Ian