The Virginia Judicial System has a number of forms for each court available on the court's form page. Virginia allows some others — like a grandparent or other relative — to file for custody.The grandparents' visitation must be in the child's best interests and not interfere with the parents' relationship with the child. Preparation details -- This form is used to award custody of a juvenile to a person. Virginia's general third-party visitation statute allows a "person with a legitimate interest" to petition a court for visitation. You must be a Virginia resident to file this form. You must file a separate form for each. Petition. Virginia Code § 20124.2 allows grandparents to file a petition for visitation if it is deemed in the child's best interest. Virginia Code § 20-124.2 allows for "any person with a legitimate interest" to petition the court for custody of the child.