ESP32 with Nextion Display

Hi, I am working on a small project for smart home and I am using a ESP32 along a Nextion Display 7inch intelligent series. I was wondering how can I instead of hardcoding my wifi credentials in the arduino Ide of setting a user friendly GUi on the nextion display so after the esp32 has scanned for wifi available , the user select one and enters the password and it will connect. I have been working around this but I cannt get pass the of how to let the user enter a password and let the esp32 know so it will connect. Any ideas or docs out there please let me know. Thanks

I think, this is what you are looking for:

Thanks so much.