OnRemove is actually working. The problem lies in your code. In Tinderbox, Boolean data-type values are
false and are case-sensitive. Thus your values of
False won’t work as expected.
Due to coercion, any value other than
0 (number zero) or a
"" (an empty string), when passed into a Boolean attribute will coerce to
true. Thus your OnRemove code:
…sets a value of
So the correct actions are OnAdd:
Or to reset to the default (
false for Booleans**) value:
** unless, of course you’ve set the doc default for the attribute to
true. Otherwise, all new User Booleans and most System Booleans have a default of
false. Some System ones use
true where an attribute was added and the existing behaviour being controlled (and/or attribute name) made a
true value a more intuitive default.