Hi Norrie,
I know his parents were David Chalmers and Marion Campbell but he is not buried with them, James appears to have been the first Chalmers who died in Dunfermline from the family, everyone else died 30 - 40 years later. The only other surname possible is Wilson or Hoggan, but I think it would be unlikely, and mostly likely in the old grounds.
Thank you for looking Norrie, it's very much appreciated.
Moo