simulate submit

simulate submit

I have a decision box in a form that generate in a new window the pdf file of the record summary.

If the user modify a single line field in the form the pdf will not take that modification into account without the user submitting the form (thus closing it) and then re open it.

I also put a pdf field in the view so the user can genéerate the pdf as a custom action also but the goal here is to have as few clics as possible.

How can i generate the pdf inside the form and take into account any user input  without submitting the form ?