Optional Document Upload

1
0
-1

Hi

Im using Bonita 7.1

I would like to know if there is a way to have an optional document upload?

I have a form with 10 document upload widgets, some times we need all 10 sometimes only 2, they cant be part of the contract because I might not use them and then the contract will not be for filled, so i cannot submit.

Any idea what is the best way to do this?

Regards
Paul

Comments

Submitted by vivek.paranthaman on Thu, 02/11/2016 - 13:10

Hi,

You may have to dig deep in ng-hide

inorder to get an idea of the required, however, you have to understand the custom page option in bonita aswell, you can research more in link ..
Regards,
Vivek

Submitted by pkcuyler on Thu, 02/11/2016 - 13:29

Hi vivek.paranthaman

Thanks for the info is there no workaround as I'm not very good at angular?

Is there no way to push from the form to the "document" without going through a contract?

Regards
Paul

2 answers

1
+1
-1
This one is the BEST answer!

Contracts accept NULL as a valid value so you just have to pre-assign a NULL value and it will work the way you want.

Have a look here: http://community.bonitasoft.com/node/22206#node-22215

regards
Seán

PS: If this post solves your question, please mark as Resolved.

Comments

Submitted by pkcuyler on Fri, 02/12/2016 - 07:15

Hi Sean McP

Thanks this does look like it will work but how do i pre-assign the null value?

Do i do it on the form input side because when i do that
Json
"takeFive" : {}, \This one will allow the upload of the doc
"unitDownload1" : null, \this one allows me to fore fill the contract with no document

I need a combination of the both
On the form output side
JavaScript exp
I have tried an if statement but cant seem to get that to work?

Regards
Paul

1
-1
-1

Hello
In Bonita 6.x forms, in the Options menu of the file button, you should check/uncheck Is mandatory check box. That way, the user can choose whether to or not to add a file. There should be a similar option for Bonita 7.x as well. You can make documents as pool variables and work with them as such. Is that what you were looking for?
Best regards.

Comments

Submitted by pkcuyler on Thu, 02/11/2016 - 13:22

Hi tresnjica93

Bonita 7 Ui designer works on contract and api it does not seem to have that option

Regards
Paul

Notifications