Programmatically change column value when its value is set to something else.
I have a freeform number field that I want to disallow certain values.
Rather than adding a validation that prevents the user from saving the page, or forces them to change the value, I would like to have the value reset automatically to something else.
I tried adding an attribute that triggers a method every time the columns is changed, but trying to change the same column inside that method causes an infinite loop.
Is there any way to get this process I want of automatically resetting a value when it is set to something "invalid"?