If the person relinquishing a newborn child is the child's parent or the parent's designee, relinquishment of a newborn child in substantial compliance with the provisions of this act is an affirmative defense to any potential criminal liability for abandonment or neglect relating to that relinquishment.
W.S. 14-11-106