How to Pre-fill some values in fillable PDF forms



  • Hi,
    Sorry for basic question. If i want to pre-fill values in PDF Forms.
    so for your example in playground - https://playground.jsreport.net/w/admin/lbhULCsP -- if I want to fill-in name and address how can I set the value.

    Thanks



  • Try value attribute

     {{{pdfFormField name='firstName' value='hello world' color='#FF0000' required=true type='text' width='200px' height='20px'}}}
    


  • Thanks Jan. value writes in red color. on mouse over its blue in color and mouse out it is red. How can I change the style to keep color black and to keep the box inline with text. defaultValue doesn't work.

    <span style="bottom:20px;font-color:black;">{{{pdfFormField name='bidOpen' color='#FF0000' type='text' width='70px' height='15px' value='09/09/2026' defaultValue='Add Date here'}}}</span>


Log in to reply
 

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