. I can fortunately bring it up with the throttle
I took it out and the trim started working up again. But then later stopped working and I had to use the trailer switch. Would a bad limit switch do this or would it not work at all if it was bad? Just wondering if I should look into anything else since it worked again for a period of time.
If you want it to work as designed then yes you want to replace it. If your OK with it working but without a limit, then connect the purple/white and blue/white wires together with a jumper. Doing this will turn your trim up switch a trailer switch (so to speak). If later during other work it can be replaced then.
Another option, which is not recommend because of corrosion, is cut the wires going to the switch on the outside at the switch. Then splice in a new switch and reinstall.