I want to create 2 fields in model namely field_a, and field_b such that:
- when
field_a's value is changed, change value offield_busing value offield_ain the calculation - when
field_b's value is changed, change value offield_ausing value offield_bin the calculation
I tried using onchange on both fields to update each other's value, but it results in a pretty ugly bug that inconsistently updates the values.
I would like to know a solution that works consistently.
Note: Both fields will be used by other fields as well.