Owned By: on change validation -> change "Owned By" value
So I can't seem to change "Owned By" value after it's validated. Previously I was using a validator but I changed to Calculated Value to be able to change the value of the "Owned By".
2 answers
I don't really know what you try to do, particularly with a flawed logic.
Your sample code doesn't change anything, as you put "return;" in both places. Also, the way you get the attribute values looks quite dodgy. See the below article for proper ways to work with attributes.
https://jazz.net/wiki/bin/view/Main/AttributeCustomization
As for your original attempt, a validator only validates the value, and should return OK or errors depending on the situation. If you change the value, shouldn't the new value be "validated" again? The process just doesn't work like this.
I suggest you keep it simple. In the case that you want to set the value to Unassigned for whatever reason, I think it will be better to just return such (error) message by a validator to the UI.