# Javascript inside a Bonita Designer form

**URL:** <https://community.ofelia.com/t/javascript-inside-a-bonita-designer-form/7829>\
**Category:** Q&A\
**Created:** [29 September 2016 06:43 UTC](https://community.ofelia.com/t/javascript-inside-a-bonita-designer-form/7829 "2016-09-29T06:43:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dibyajit.Roy](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@Dibyajit.Roy](https://community.ofelia.com/u/Dibyajit.Roy)\
**Post date:** [29 September 2016 06:43 UTC](https://community.ofelia.com/t/javascript-inside-a-bonita-designer-form/7829/1 "2016-09-29T06:43:22Z")

</div>

Hi

I have a observation.  
The Scenario is that I have a custom Living app page. There I have 2 separate Lists of type multiple.  
My contract is a Single list of Type multiple.

What i am doing here is Adding the values of the 2 lists together and sending it to my contract.  
I am using JavaScript to perform this.  
In side the custome page , it works fine.

Now along the process , I need to do the same inside the process.  
This time its a Bonita portal form . I am using the same JavaScript code in the formOutput section but its does not respond . I am getting a contract violation error . If I remove the JavaScript and simple Add it like  
Contract = $data.formInput.List1 then it works fine.

Is there any restriction inside forms to use the same JavaScript that we can use inside Living app page .

Also is there any specific ways to implement Javascript in forms using any other script ?

---

<div class="post-metadata">

**Author:** ![Sean\_McP](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/sean_mcp/32/932_2.png) [@Sean\_McP](https://community.ofelia.com/u/Sean_McP)\
**Post date:** [6 May 2017 23:04 UTC](https://community.ofelia.com/t/javascript-inside-a-bonita-designer-form/7829/2 "2017-05-06T23:04:49Z")

</div>

See my answer here:

[http://community.ofelia.com/node/26477#node-26488](http://community.ofelia.com/node/26477#node-26488)

regards  
Seán

_PS: As this reply offers an answer your question, and if you like it, please Mark UP and/or as Resolved._

---

<div class="post-metadata">

**Author:** ![desparzagophone\_1378](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@desparzagophone\_1378](https://community.ofelia.com/u/desparzagophone_1378)\
**Post date:** [23 November 2018 14:00 UTC](https://community.ofelia.com/t/javascript-inside-a-bonita-designer-form/7829/3 "2018-11-23T14:00:49Z")

</div>

ingles  
a query in the form the user who initiates the process can enter multiple numbers, could make the sum of the multiple data?  
what happens that I do something similar but I can not add all the multiple data that the user enters

español  
una consulta en el formulario el usuario que inicia el proceso puede ingresar multiples numero, pudo realizar la suma de los multiples datos ?  
lo que pasa que hago algo similar pero no logro sumar todos los datos multiples que ingresa el usuario
