• Resolved andrewkomkov

    (@andrewkomkov)


    Hello!
    I have 2 questions:
    1. How can I pass user name to form?
    2. Can I use it in watermark when I hit Print button on form?
    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    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.

    Thread Starter andrewkomkov

    (@andrewkomkov)

    Thank you!)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add watermark with username by hitting print button’ is closed to new replies.