Disable Create button until after file upload is complete
Disable Create button until after file upload is complete
I have been looking through some of the forums, but I haven't quite found an answer to this question. I am having an issue with users that are uploading files, but they are not waiting until the upload is complete before they click the create button in the editor window. This is causing an issue where the attachment id is in one table, but the corresponding attachment is not in the attachment table. Which causes an error and does not allow the table to display any records. Is there a way to disable the create button during the file upload process?
This question has an accepted answers - jump to answer
Answers
Interesting - I thought it actually did that automatically! I'll check into that.
In the meantime you could do:
That will just use
preSubmit
to cancel the submit action based on theuploading
variable we define and manipulate above.Allan