The Sheriff Court Rules state that at any stage of a family action, the Sheriff may appoint a Child Welfare Reporter to (a) seek the views of the child and report any views expressed by the child to the court; or (b) undertake enquiries and report to the court.
If you are involved in a court action in which a Child Welfare Reporter is appointed, the Reporter will probably want meet with you and your ex-partner, and with the child(ren). Sometimes the Reporter will go