The defibrillator has been placed at Whitecross Junction after the efforts of youngsters at Whitecross Primary School saw £1400 raised.
Headteacher Elaine Ramsay said: “Our Health and Wellbeing Officer Nyree Heggie suggested raising funds for this as a long term project. We carried out some dress down days and raised around £200 but also the profile of what we were doing for the community.
"A parent from the village, but who works with a group of expats in Saudi Arabia then contacted us as they wished to be involved and donated a sum, along with the Parent Council. Alan Steel Asset Management in Linlithgow provided us with the remaining sum to purchase the defibrillator.”
With one-in-ten people in the UK surviving an out of hospital cardiac arrest, public access defibrillators give them a far greater chance of survival.