Question

How add watermark to form?

  • 10 August 2017
  • 3 replies
  • 1636 views

Hi,

 

Does anyone know how to add a watermark to a form like in a word document e.g. to say IN DRAFT across each page.

 

Thanks

Sana


3 replies

Userlevel 6
Badge +10

Hi Sana,


 


Set the following script as an expression on a data label and check the Literal property of the data label:


 


<script type="text/javascript">
$(".panel-body-wrapper").css("background", "url(http://res.cloudinary.com/deadlypenguin/image/upload/v1460686084/BattleStationDraft_l9f82j.png) no-repeat center");
</script>

Hope that helps


 


UPDATE


 


This will set a background to all views on the form, I haven't found a way to set it one time only. 

Thank you.  I will give this a go.

Hi Mustafa,

 

If I want to use the image stored in the server, where will it be stored and what will be the value of the url on this code?

<script type="text/javascript">
$(".panel-body-wrapper").css("background", "url(http://res.cloudinary.com/deadlypenguin/image/upload/v1460686084/BattleStationDraft_l9f82j.png) no-repeat center");
</script>

Thank you in advanced. 

Reply