Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

2 fields that can change the data in each other...

Avatar

Former Community Member
Scenerio: Three fields, a total, a percentage, and amount. I need to have it so that the user needs to enter the Total (I can do this part). Next I need to have it so that if they enter a percentage then the amount field is updated with the result of percentage * total.



This part isn't so hard, I've gotten it just fine. My problem arises when I try to have it so that when the user updates the amount, the percentage is calculated. Generally, I can have either the percentage work or the amount work, but not both back and forth. ie, I enter a percentage that calculates the amount, but later I go back and enter the amount instead to calculate the percentage.



Is this even something that can be done?



As a note, I've been using FormCalc since my Javascript skills are so rusty that I've forgotten most of it. Any help would be appreciated to point me in the right direction.
0 Replies