you can add a javascript event listener on the link that displays an hidden fieldset which contains your data. Then you can apply some css rules to render as a popup.
Ttoine: I can use "submit" buttons! I tried with the following widget:
Widget > Submit
Appearence - Cell > Button style option: Label
General - Options > HTML Attributes: <form><input type="button" value="Click to print" onClick="window.print()"></form>
But I don't know how to open the "window.print()" result in a new window or maybe, if exists, maybe I can use some code to send the form to the printer without opens a window and after goes to the next step.
Nicolas: please, can you send me some code example, or something like that? Or as I explained above, can be just some code to send the form directly to the spool service to print the data and go to the next step!
on the submit button set "submitPrint" in the class input field in Appearance tab> Field> Custom style
in this form put a new html widget after the submit button
Click on data tab
put in initial value this javascript code
<script type="text/javascript">document.getElementsByClassName("submitPrint")[0].onclick=function(){
/*
* this example prints the whole window by click on submit button,
* you can format data as you want by adding style, text then print.
* You can do it by many ways, you can also retrieve data from fields * then print its in a new popup opened through javascript
*
*/
window.print(); // this will print the whole window var retrieved_values = "fdsf";//get your fields value
var myWindow = window.open("","MsgWindow","width=200,height=100");//open a new popup
myWindow.document.write("<p>"+retrieved_values+"</p>");//print your popup
};</script>
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.