Close modal automatically after task execution

I am developing an application page and on my main page the tasks are opened within a modal that I developed following this tutorial (https://documentation.bonitasoft.com/bonita/7.5/uid-modal-tutorial)
I would like it to function as the default Portal and after the task has been executed, the modal closes automatically.

How do I close automatically the modal after executing the task?

Within the modal I am using an iframe to open the task.

Iframe Code -


How to call the BDM API through AJAX from JavaScript Expression in UI Designer?

I am using Bonita version 7.7.4.

I want to call the BDM API from the** Javascript Expression** through AJAX to get the specific data through query if a specific field is selected.

For now, I am doing this by creating a variable of External API in the UI Designer to get all the data from BDM in those variables.

Looking forward to an answer.

How can I filter what autors do?

I already established an employee and a boss for to types of task, but when I run the pool every user can do any task, so I cannot get the action to evaluate vacations assigned just to the supervisor.

Please let me know where exactly can I do this and how should I do it... could anybody give me an example.

How to perform Javascript function using a button in UI Designer

I have an HTML file that calls certain functions of a javascript file when a button is clicked. I've been able to import a javascript file into the UI Designer but I can not make a button that performs a certain function of that javascript file, is it possible?

Can't get document by url or id

Hey guys,
I read this: https://documentation.bonitasoft.com/6.x-7.2/documents-0 and tried to implement this but faild.
I tried two ways, that I will show you and maybe some of you can help me and say what the next steps could be.

First try:
I got the url of my pdf, its: documentDownload?fileName=BookOne.pdf&contentStorageId=1643

select option value


I have a question, is there anyway to make trough javascript put a value on a select widget.


my select widget have loaded 3 items


and i want when the form start that the widget start with the value p1, but if i change another field the select take a value that is needed.

is that posible???

my select is on a $item.

i have tried to make this


but when i try that the system tell me that is undefined...

so what can i do???

How can I call an API from the UI Designer?

Hi everyone,
I want to call an API (not Bonita API) from a JavaScript variable from the UI Designer. I have the following code:

Bonita application and custom event listener for pages

Hello. I am trying to create bonita application and cant realy understand 2 moments with it.

1) Is there any way to separete bonita application with bonita portal? I want to have "stand alone" application with its own authorisation, without default bonita portal authorisation page. The main idea to prevent users from access to bonita portal pages and functionality to create application wich would look like production application.

How to access data from a subarray by UI Designer?

How can I access data from a subarray in UI Designer? Following the example of expense reports that is available in Bonita Community, I was able to add the data to an array in the UI Designer and then bring them to the BonitaSoft studio, however I have a dropdown that should be filled according to item Selected in the first dropdown, according to the following image: