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_b
using value offield_a
in the calculation - when
field_b
's value is changed, change value offield_a
using value offield_b
in 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.