Hi
I would like to display a warning popup window when the user clicks on the 'upload' button of a rich:fileUpload component. I tried using the onfilesubmit event, but it does not prevent the fileUploadListener to fire.
What would be the right way of doing this: user clicks on 'upload', gets a popup and confirm, and then the fileUploadListener fires. The user could also cancel, in which case the fileUploadListener would not fire.
Thanks for your help
Jean-Noël
Hi,
you can attach a listener to the upload button: $(".rf-fu-btn-cnt-upl").click(function() {return confirm('Are you sure?')});
If you click cancel it will stop the click event from propagating so the upload doesn't start.