Pro-Form Quick Start 9.0 Guía de usuario Página 145: To write a calculation script

/ 270
Tabla de contenidos
129
©Nitro

Add or edit custom calculation JavaScript

Any form you create that requires calculations is likely to require custom calculation scripts. The options
you have available with preset calculation formulas are limited to simple multiplication and addition.
Other kind of calculation you need requires writing a script.

To write a calculation script

1. Open the PDF in Nitro Pro 9
2. On the
Forms
ribbon tab, in the
Fields
group, click
Text Field
3. Select the text field to edit
4. Right-click and select
Properties
5. Click the
Calculate
tab
6. Click the
Custom calculation script
option, and then click the
Edit
button
7. Type the code for your script. In the example below, a simple routine is created to calculate sales
tax at a 7.25 % rate. The code used is:
var f = this.getField(“subtotal”);
event.value = Math.round(f.value 7.25)/100;
8. Click
OK
Nitro Pro 9 - User Guide

Archivo PDF · ·

Imprimir

Imprimir documento

Compartiendo

Preguntas sobre Pro-Form Quick Start 9.0

Todavía no hay preguntas sobre este manual. Haga la primera.

Hacer una pregunta

Respondemos con el manual e indicamos la página. La pregunta se publica en el sitio después de revisarla.

Todas las preguntas y respuestas ›

Productos y manuales relacionados para Cintas de correr Pro-Form Quick Start 9.0