のを忘れていました

forgot to

→ の
phrase Rare #38,281
forgot to Follows a verb or action phrase. 忘れていました is a polite past form meaning “forgot.”
JA: 窓を閉めるのを忘れていました。
EN: I forgot to close the window.