Calculate interdependent fields
-
I am making an online calculator. This requires the user to input some common inputs say fieldname1. In addition to this, the user should either provide fieldname 2 or fieldname 3. With fieldname 1 and fieldname 2, it is possible to compute fieldname 3. Similarly, With fieldname 1 and fieldname 3, it is possible to compute fieldname 2. I wish to provide two buttons, depending on which, form fields will be evaluated. For example, the “compute fieldname 3” button will clear fieldname 3 and compute it using fieldname 1 and fieldname 2.
I need some pointers on how to write the required onclick events, and HTML content to be added, if any.
Thanks!
The topic ‘Calculate interdependent fields’ is closed to new replies.