How to clear the value from Date Field using script?
Simple. From one of my groovy scripts:
change.setValue(2002, null); //Set the Date field, in this case Base ID 2002, to null.
//you could have also written it like <change.setValue(ChangeConstants.ATT_PAGE_TWO_DATE01, null);>
Let us know if you need more help.
I’m hoping to piggy back off this question. When I use setValue(####, null) it sets the value to empty string if it’s a multitext attribute. How do I remove the value? When an Item is originally created, calling getValue() on a Attribute that has not been set returns null, but once the value is set, it seems I can never get rid of the value, as empty string is still a value.