External photoevaporation and planet formation