Explain the problem as you see it
I have a supertag #question, which has a field called "Answer". If there is a value in the Answer field, the question is answered and can be considered complete.
I would like to have my #question automatically marked as Done once it has an answer. I've tried to do this with Done state mapping - map checked to field Answer, value @SYS_V60 (Set), map unchecked to field Answer value @SYS_V59 (Not Set). This doesn't toggle the checkbox.
Why is this a problem for you?
Done state mapping works well for Instance/options fields.
I could write a command that checks the Answer field and sets the Done state based on whether or not there's a value there. But then I have to remember to manually run that command every time I enter an answer (or remove it). It would be nicer to have this done automatically.
Suggest a solution
I can think of a few ways to do this:
I'm guessing that currently the "Done state mapping" logic expects an enumeration, and can't handle checks like "Is Set" or string comparisons. If it could be broadened to handle those, it would be lovely.
Another way might be to have a Command that is able to prompt me for input. Trigger the command, provide the answer, the Command checks that the answer field is now set, and then sets the Done state. Not quite as convenient as automatic Done State Mapping but I would be able to use the same kind of prompting workflow in lots of other places too.
Automatically run a command when a field is updated? If I could have a command that runs every time the Answer field gets updated, it could handle the done state mapping for me - and I'd have lots of flexibility over how to handle it.