Is it anyway to disable button if no file was uploaded? Thank you.
Hello,
You can make use of FilePondUpload_GetTokens client action and the Uploaded event from the UploadBlock webblock:
Hope this answers your question :)
Regards,
Bogdan
@Bogdan Boglea , thanks for the answer, But I see the "Uploaded" event is not being triggered. Though i have handled the event, the logic in the handler is not working to disable the button.
My use case, i want to disable the input field until the file is uploaded, i am able to achieve this by check "upload in progress" event.(checking if upload % is 100%)
But, now the user removes the file by clicking cross icon in the upload block, I want the button to disable again during that event.
Please help if you have any idea.
Hi,
You can check the logic by checking the file variable(binary data type) is null or not.
If it is null then make the button to be as disabled else make it vice versa.
Thank You!
Happy coding,
Saksham Srivastava