I split from my ex early 2000's so my info is clearly out of date re mediation.
That said, if my ex had been forced to go mediation first I strongly suspect we would still have ended up in court cos he just didn't 'get' that his flaking on contact meant he had a right to see dd whenever he liked in the intervening time between the next contact! Just wouldn't be told! He got dropped by 2 lawyers and by the time we got to the last hearing my rep (I had a barrister by this point as it was getting stupid!)
His own lawyer - in the bit outside the court - was having a real job getting him to shut up and listen to her telling him he wasn't going to get what he wanted - which was basically to phone me an hour before and demand contact as and when on that basis, essentially wanted to be able to click his fingers and me come running!!
Instead, and several on mn have said this can't be done - it can I've the court order to prove it somewhere
He was given one day at weekends inc an overnight. Which is what I had wanted from beginning. I'd have also liked him to see her one day in week - which he rejected (I photocopied that bit just in case he claimed to his supporters he wanted to see dd more and was denied).
But - here's the bit people tell you can't be done - he was warned ANY more flakiness and he'd lose all contact rights. Judge was clearly aware of the history of him slamming it back to court for the slightest bloody reason and that he needed reining in!
For 6 months after that he did behave, contact, maintenance the lot!
Then he moved in his job (same location but sideways move to increase chance of promotion) and it all went to pot again! I reckon cos his previous boss had ALSO had enough of him taking time off to go to court and had also had a word, but when he got a different boss he saw that as a reason he could start messing about again. But the difference was this time I didn't rise to him like I had before, I simply said - crack on, you know what the court order says. So reminding him it wasn't in his interests to take me to court again which he didn't.
Within a few years we'd both moved away from the location, several hundred miles from each other and he just didn't bother making arrangements, booking leave from work etc.
His loss. I have a cracking relationship with dd now 17. He'll never have that. I already know through the grapevine (he's a plank and forgets we know the same people sometimes) that he really regrets his actions, but also knows it's too late to make it up to dd, he can build a relationship with her as his adult dd, it's not the same.