How to make attachment not required?

Hi,

I want to make the attachment not required. I use these File upload and download process example (http://community.bonitasoft.com/project/file-upload-and-download-process-example). I cannot submit the form when it is empty. How can I make it optional and can submit the form when it is null and have an attachment. If this cannot be done is there a workaround for attachment.

Note: I use the multiple attachment option since our user attach multiple of documents.

Please help. Thank you very much.

Hello christianmichaelgarizala!

You can put in your formInput/formOutput JSON the document member as null, example:

formInput{ 
document: null
}

With this, you can submit the page even if not uploading a document.

Cheers,
Marcos Vinícius Pinto

Thanks.