Developer here, no UX expert. I have a somewhat unfortunate requirement in a Web-GUI: There are data concerning employees, including an active/inactive flag and a leaving date. If a leaving date exists and it is in the past, the employee is automatically set to inactive (by a daily batch process).
The question is how to handle this dependency in the GUI. Of course I can go throught the hoops and loops, activating and deactivatin the "active" switch according to the leaving date, but I'd rather hope to find a better solution, which makes immediately clear that you can only switch the state of the employee (e.g. in case of maternity leave, long-term sickness etc) if she didn't left the company (because else she is "automatically" inactive).
I can't change the data model (without very good reasons) and the available widgets are somewhat limited, but except that I have some freedom concerning this problem.