An image forming apparatus equipped with a plurality of service applications for providing respective services, in a state enabling a selected one of the service applications to be automatically started from a terminal apparatus. An image forming apparatus capable of performing printing includes a NFC unit. An NFC controller generates data to be read out by an external apparatus, according to selection of one of a plurality of applications. The NFC controller writes the generated data into the NFC unit.