This is the bungi stretch cords i was referring to. They come in all sizes and lengths from WALMART... These just keep pressure on the trailer cord when it is plugged into the socket.
The top of the trailer plug has a catch that you are suppose to sort of snap the flip place over after you insert the trailer plug. On my newer truck it doesn't do as good a job as my older ford truck connector did..
Note the raised catch on the top of this connector plug. This is where the spring loaded flip door on my ford truck trailer connector snaps in front of this raised part and holds it into it inserted position. Perhaps your truck bed connection doesn't have this feature..
You can almost see the piece on the bottom of this spring loaded lid that will snap over the raised area of the plug to hold it in place.
This is a ETRAILER.COM truck bed mount extension cable kit
I really haven't looked at any of the truck bed connections but I think they all use the same idea
Just submitting all of this to help you figure a good fix for your particular problem of the trailer cable coming out on its own..
This is what I found on my trailer plug install at any rate...
Roy Ken
My Posts are IMHO based on my experiences - Words in CAPS does not mean I am shouting
Roy - Carolyn
RETIRED DOAF/DON/DOD/CONTR RADIO TECH (42yrs)
K9PHT (Since 1957) 146.52M
2010 F150, 5.4,3:73 Gears,SCab
2008 Starcraft 14RT EU2000i GEN
2005 Flagstaff 8528RESS