PDF Script Issues and Solutions

1. How to display alert popups in pdf script ?

                                 app.alert();

. Include this statement either in document level or field level script. This will popup alert box when we open or action on the fields.

2. How to get numbers with leading with 0 in pdf script ?

                    this.getField('field_name').valueAsString;

This will get the value of ‘field_name’ as a String type. As the type implies, it returns the value without removing any leading zeros. e.g ‘007’