In situations when you need to follow government or other specifications for encoding data, you may find that the preset data encoding options do not meet your requirements. Using the Custom option, you can provide your own script for encoding the data. The script could be quite simple, as in this example:
For example, the following sample code illustrates the JavaScript script required to retrieve a form’s field values, format a string representing a Comma Separated Value (CSV) instance containing the form fields, and update a paper forms barcode for an interactive PDF form. The form contains fields named accountNum, formerFirstName, formerMiddleInitial, formerLastName, newFirstName, newMiddleInitial, and newLastName.
{
{
}
}
{
}
See also 

To create a custom script for encoding data for a paper forms barcode