Good morning friend. I couldn't solve it. I did everything correctly, but the date I want isn't showing up, that is, x days from any given date.
// Defines the number of days to be added
var daysToAdd = Number(this.getField("Calculation2").value);
And I did the calculations in the correct order.
Lucidio
Hi @lucidio_6830 ,
The name of the field for Calculation2 in your form is spelled like this : "Calculation 2" (with a blank space before the number 2), and not "Calculation2" (as expressed in your equations).
Field names in an equation must be spelled verbatim as they were created when you added the PDF objects to the form, otherwise just go ahead and adjust the field name in your equation to "Calculation 2" (instead of Calculation2).
The JavaScript console will keep throwing an error until this is fixed.