A Pennsylvania appeals court has declared Sherri Shepherd legally responsible for a child born to a surrogate before she and her ex-husband divorced.

The actress has fought efforts to be named the boy's mother on his 2014 birth certificate.

A lawyer for ex-husband Lamar Sally believes she must continue paying the $4,100-a-month in child support awarded by a court in California. That's where he is raising the child.

Court papers show the couple paid $105,000 for a suburban Philadelphia surrogate and supported the pregnancy until Shepherd changed her mind as the marriage faltered.

Surrogacy advocates say the Superior Court ruling Monday is the first in Pennsylvania to declare surrogacy contracts legal and binding.

Shepherd had roles on several sitcoms and co-hosted ABC's "The View" from 2007 to 2014.

Her lawyer did not immediately return a message Tuesday.