CAN A COURT IGNORE AN AGREEMENT OF THE PARTIES?

Parties divorced in Illinois. Mother was granted leave to move to New York with the minor child. The  removal and visitation order contained a forum-selection clause.  The parties had agreed on it as part of the agreement for mother to move with the child to New York.  It required that jurisdiction remain with the State [...]