Disable calling and texting but not WiFi or NFC
On the s5 you can turn on airplane mode, and you'll still be able to use wifi.

So actually the wifi will turn off when you turn on airplane mode, all you need is just turn back on WiFi.