Using "getElementById" to get input values of Dialogue Boxes

Ok… I found the answer. The PsychoPy team made some changes to correct some things about how dialogue boxes work. These changes are not yet reflected on the PsychoJS source code that is available online at this moment in https://psychopy.github.io/psychojs/core_GUI.js.html. I put the new code for solving the issue with the use of Dialogue Boxes in a reply to the post below: