You can use Nitro Pro to create your PDF file with a form.
First, we need to create a new PDF file:
Then we need to add text which will indicate a field name (click on Type Text in Home section):
After that, we should add a field to our PDF file (Forms section):
Finally, we should specify this field’s name. Later you will want to automatically populate values to this form. That is why it is important to assign the correct field name. When populating the form you will submit some object with values. The field name has to match property names in this object.
For example, you have a field with the name “Text1”. In this case, you will need to submit an object with the structure like this to fill this field:
{
"Text1": "Some value"
}
Click on the field -> Properties section to change field name:
Download the example of a fillable PDF for this article.
And here is the example of the data object that could be used for populating this form:
{
"FirstName": "David",
"LastName": "Navarro",
"Address": "3 Main St.",
"City": "New York",
"PostalCode": "972013",
"PhoneNumber": "202-555-0131",
"Email": "david@sample.com",
"Activities": "Sports: football, basketball, volleyball",
"CurrentlyWorking": "No",
"HistoryCompany": "Acme Corp",
"HistoryEmploymentSector": "Public",
"HistorySupervisor": "Derek Clark",
"HistoryPhoneNumber": "555-777-9999",
"HistoryPosition": "Marketing director",
"HistoryDuties": "Developing marketing strategy",
"HistoryLeaving": "Moving to another city",
"HistoryContact": "Yes",
"HistoryEmploymentForm": "Trainee",
"Date": "06/30/2019",
"PersonalDataConsent" : false
}