Salt of the earth

I have quite literally been told I don’t get enough salt. The reason I had a cramp at the end of the marathon was because my body had run out of salt. The doctor (sports massage one) recommended a salt tablet at those times. Which as near as I can tell is all the benefits/disadvantages of salt without any of the taste.