Is it possible to restrict the max value of a number field based on the value (calculated via formulas) from another number field?
I have a series of simple add and subtract calculations to determine the max amount of money an employee can contribute to their Health Savings Account per year. When they choose how much they'd like to deposit per year into that account, I'd like to be able to restrict it to the value that was determined by those calculations.
For the sake of discussion,
Max Contribution per Year = Field A
Elected Contribution per Year = Field B
I'd like to be able to limit the value of Field B to that of Field A, which is calculated via a formula. I'm sure there's some JavaScript to accomplish this, I'm just not sure where to begin. Any suggestions?