I have to submit one webform after one file is uploaded and attached.
Current issue is whenever the process of attaaching the file starts in file upload dialog, the submit button is getting clicked just after the Open button is clicked but the file is still not attached. So submit fails. The attachment is taking fee seconds to upload. I want to place the submit function only when the attachment is done.
Please help me how can i do that?
Screenshot of demo design for this implementation would be very much helpful.
You are unlikely to get a sample here as your site is likely different than any we could find publicly. Is the site you are working with publicly available? There are various events that you could potentially listen for or perhaps something inside one of the DIVs changes to let you know when the file is uploaded. Without getting a hands-on, I really cannot provide more specifics.