Running validation script prior to allowing signature
I am creating a form in Acrobat Pro DC and I am trying to run a validation script to ensure two text boxes show equal numerical values prior to allowing a signature. The bottom "Hours" text box in the "This O&A Cost Estimate is being provided for the following:" is formatted to sum up the hours in the 7 lines above. I am try to add a validation alert that will pop up if the hours block a the bottom of the "labor" table does not match the other "Hours" total when the "Originator" goes to sign the document. This is the JS I added to the "Originator" signature.
if (TotalTaskHOURS.rawValue != TotalManHours.rawValue){
app.alert("Total hours and Labor hours do not match.");
}
I attempted to sign the document with the different totals in the two "Hours" text boxes and the app alert did not pop.

