Participating Frequently
January 24, 2022
Question
Checkbox triggers specific variable to be used in calculation?
- January 24, 2022
- 2 replies
- 1279 views
Hi there,
I'm creating a PDF septic inspection report form that automatically calculates elevations.
I want to use checkboxes (or radio buttons) to change the variable used to subtract from:
ie:
Without checkbox checked, X-Z=N (or HIBenchkmark-FSBldg Sewer = ElevBldg Sewer)
With checkbox checked, Y-Z=N (or TPHI-FSBldg Sewer = ElevBldg Sewer)
I'm fairly new-ish to javascript, and would appreciate any and all help on this topic!
I've also attached the form that I am working on with current calculations.