I have two fields on my form that need to be reset to "0" if they exceede the value of the parent field. Currently, OnChange of the field will show an error if the value is greater than the parent value, however, it is not resetting the value back to "0".
Here is my code for the OnChange of the field:
If(
Value(DataCardValue5.Text) > 0 && Value(DataCardValue71.Text) > Value(DataCardValue5.Text),
SetFocus(DataCardValue71);
Reset(DataCardValue71);
Notify(
"Child TCR cannot be greater than Parent TCR",
Error
)
);
As you can see, the field values remain greater than the parent values, but I want them to reset to 0.
