Check out post from Colette Kamps, CPA for a great summary of the rules for recording donated services: To Record or Not Record Donated Services.
There are specific rules for when an NPO can record revenue for services that have been donated. It is not optional. If the specific requirements are met, then the donated services must be recorded.