Hello!
When I create scripts using Variable in a BonitaForm I can access to the formInput using : $data.formInput
However, when I do the same with a sript from Assets it does not work anymore. I tried : $data.formInput / data.formInput / formInput but none work
If for any reasons it's not possible, there is my second question : How can I execute scripts in Variable FROM Assets script.
Thank you in advance!
Hi,
In order to use a variable in your input widget refering to a script from the Assets, you have to select a javascript asset, write your script, and then create a new variable in the variable panel, which will refer to the variable in your script. This variable will be used in your page.
Everything is explained in the documentation: https://documentation.bonitasoft.com/bonita/7.10/assets#toc2
But could you please explain your use case? Why do you want to do it that way? I am not sure using assets is the easiest option for what you want to do.
Thanks