I did have the perfect recipe and I lost it during a house move...
Basically it wither comes out rock hard and can't get it out of the tin, or it hasn't stuck together and we end up just eating the crumbs out of the tin in one sitting! I want them to go in packed lunches, so if you could pass on your recipes that actually work I'd be very grateful!
6oz butter, 6oz demerara sugar, 3 tblsp golden syrup melted in a pan. Add 8oz oats and anything else like 1oz coconut, nuts, fruit etc. Bake at gas 3 for 20-25 minutes. I like quite a squishy deep flapjack so I use 7" square tin but you could adjust that depending on how you like yours.
I add 1 oz self raising flour to my mixture which helps keep it together, baking it for 20 mins at 170 degrees. When it's out of the oven, I ease round the edge with a knife, then leave it for a while before turning out, and cut it when it's completely cool.