Checkbox did not show when print the form

  • 18 October 2022
  • 1 reply
  • 79 views

Badge +2

Hi all,

I need to print my form. And I added Datalable and set this expression to it:

"<script>window.print();</script>" (I need to show the print pop up). And when I print the form, my check box did not show.

 

How can I make the check box show when printing?

 

Thanks for your help.


1 reply

Userlevel 3
Badge +10

How was this implemented?



Do you have a data label control where the 'Literal' Property is enabled, and the Prevent XSS is disabled?



Are you setting the data label with the script as the value?



Or do you have the <script>window.print();</script> defined in a expression, and the mapping the expression to the data label with the settings described above?



You can also do a:


when form is initialized


- set property control of the data label described above, setting the expression to the expression with the '<script>window.print();</script>' defined, this may ensure that the print windows will load after the form has fully loaded

Reply