Form button onClick event to control uploader(upload btn)


#1

Hi,

I have the problem talking about the uploader and form’s button.

form’s button can use myform.attachEvent("onButtonClick", function(name){ } , to control the button.

the uploader has the uploader’s button to upload the file into somewhere.

Now, I want to use the form’s button (onButtonClick event) to control uploader’s button to upload the file.

Could you please to help?
many thanks.



#2

As this is not the form button but the uploader button you need to use the uploader API to control it.
Please, try to use the getUploader() method to get the uploader object allowing to use the Vault api:
docs.dhtmlx.com/api__dhtmlxform … oader.html