Add possibility to change a var just when another is changed by the user refs #5396