Hello @andrewkomkov
Q: How can I pass user name to form?
A: You should use the set of DS fields to read the data of logged user:
https://cff.dwbooster.com/blog/2019/02/14/ds/
Q: Can I use it in watermark when I hit Print button on form?
A: Yes, of course. You can use CSS to generate the watermark.
1. Insert an “HTML Content” field in the form
2. Enter the class name watermark
through its attribute “Add CSS Layout Keyword”
3. Enter the block of code below as the content of this field:
<p class="bg-text">Watermark</p>
<style>
.watermark{
position:absolute;
z-index:0;
background:white;
display:none;
min-height:50%;
min-width:50%;
color:yellow;
font-size:3em;
}
.bg-text
{
color:lightgrey;
font-size:120px;
transform:rotate(300deg);
-webkit-transform:rotate(300deg);
}
@media print{.watermark{display:block;}}
</style>
Best regards.