PDF forms - border



  • I can't seem to get the PDF border to appear on form fields, referenced here

    https://jsreport.net/learn/pdf-utils#forms



  • What value are you trying to pass there?
    Did you try to open the result in the desktop acrobat reader? The browser's native support for pdf forms is limited.



  • Okay.. no problem. I'm just creating a pdfFormField for a client to fill out. By the way, passing functions for dynamic naming works, and you may want to add that to your docs

    {{{pdfFormField 
        name=(ff "item_price" 2)
        type="text"
        backgroundColor="#ffdd00"
        fontSize="10px"
        width="90px"
        height="24px"
    }}}
    

    Where ff is just a concatenation function.

    function ff (param1, param2) {
        return `${param1}_${param2}`;
    }
    

    So the results will yield item_price_0, item_price_1, item_price_2, ...

    Very cool!


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.