Is "X" switch 3-pin or 5-pin?
On the product page for the switch, click on the + next to the switch name to bring up the specifications. This will list the mount type of the switch.
A PCB mount switch will have 5 pins, and a plate mount switch will have 3 pins.