Snapping one vertex to another on one axis

Hello everyone,

I’ve searched on this topic, but can’t find the answer to my question. Hopefully I’m not double posting.

My question: I’m trying to find out how I can snap one vertex to another, but only on one axis.
So for instance that these vertexes have the same height, but different orientation on the other axis.
Activating the magnet and selecting snap to vertex doesn’t seem to do anything.

Constrain the snapping to an axis
G X snaps to the X axis with snapping enabled etc

Thanks!! :smiley: