Hello everyone,
While we were writing code for a task layout it occurred to us that this could be done much simpler via a task variant. But to our surprise the task variant was not able to do this. Like in subjects, you can alter the visibility of columns per variant, but in task variants this is not possible.
As a concrete example: I had a task where three values have to be invisible for a certain role. Now I have a preparation task that prepares a value, sends that to the task that needs to be executed, and the layout logic sets those, otherwise editable fields, to hidden or read only based on whether the value in the preparation task is true or false.
It would be easier if I could just set those task fields to hidden in the variant directly, this would save a task and a bunch of code in a lot of instances.
So in short, I would like the following option in the subject variants:

Where I can give the columns a stricter visibility (and not from read only back to editable) per variant. I think it could be a good idea to implement this in the task variants as well, so that this option becomes available (per variant) here as well:

This would be ideal in many situation that now require extra (sometimes unnecessary) code.


