How to make attachment not required?

1
0
-1

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...). 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.

1 answer

1
+2
-1

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

Comments

Submitted by Ali Zaami on Sun, 11/26/2017 - 09:20

Thanks.

Notifications