I would suggest that, but for a dangerous situation, that would be a bad idea.
The judge will make a custody determination based on the best interest of the child. If the custodial parent is not allowing the other parent even requested visitation then the custodial parent will not look like they are acting in the best interest of the child when standing in front of the judge.
In the judge's mind it will his or her decision will not be based on who has possession of the child at the time of the hearing.
Again, only in situations where he custodial spouse and or the child's life is endanger would hiding the child be advisable.
DISCLAIMER: Answers from Experts on JustAnswer are not substitutes for the advice of an attorney. JustAnswer is a public forum and questions and responses are not private or confidential or protected by the attorney-client privilege. The Expert above is not your attorney, and the response above is not legal advice. You should not read this response to propose specific action or address specific circumstances, but only to give you a sense of general principles of law that might affect the situation you describe. Application of these general principles to particular circumstances must be done by a lawyer who has spoken with you in confidence, learned all relevant information, and explored various options. Before acting on these general principles, you should hire a lawyer licensed to practice law in the jurisdiction to which your question pertains.
The responses above are from individual Experts, not JustAnswer. The site and services are provided “as is”. To view the verified credential of an Expert, click on the “Verified” symbol in the Expert’s profile. This site is not for emergency questions which should be directed immediately by telephone or in-person to qualified professionals. Please carefully read the Terms of Service (last updated February 8, 2012).