Set WiFi SSID and PASS using NEXTION touch display

Hi everyone!

I am working on a project which I connect to the wifi using ESP8266, but I have to define the SSID and PASS in the Arduino code.

I would like to know how I can connect my system to wifi using the NEXTION touch display, not to just one pre-defined wifi, but to any wifi network in case I move the system to a different place.

So, on my nextion screen, I would like to display the available wifi networks, and by choosing the one I need, a touch keyboard will appear, and a field where I can introduce the password

If you know any tutorials on that, or any guides, I would really appreciate

Thanks in advance!