Hi
Just starting to use the dhtmlx facilities and very impressed.
I have run the vault demo on our test server and have uploaded files and extracted data from the upload in my php program.
I see setFormfield to send hidden data to the server, but I was hoping to grab more form data which the user enters.
Do we need to transfer the data from our form to the vault using the setFormField ?
If so is there an event that fires when the upload button id clicked?
if not, how doe we link form fields and the vault?
Many Thanks.
We usually use “onUploadComplete” event, and if the file is uploaded successfully, we submit the main form.
There is no specific event before upload (good idea, we will add it). Right now you can use onAddFile event for the same purpose. Alternatively, you can call setFormfield whenever your field is actually modified. Just now, and we will add this event handler.
Thanks for the response, the onUploadComplete event sounds good to me.
I was not sure if I could use the setFormField multiple times if the field is revisited and the onChange is fired more than once.
Yes, you can do it. There will be one field with specific name, you may change it a lot.