I am attempting to create a simple dialog box with a dynamic number of checkboxes. My goal for the dialog box is to take a number the user selects beforehand (in a separate dialog) and create that many checkboxes. I can successfully prompt the user to enter the number of checkboxes desired, but I'm having difficulty looping through the "initialize" and "description" properties of the dialog box to create the desired number of boxes.
Any help you all could provide would be appreciated.
Thanks in advance.
That is quite a complex task. In order to do it you need to define the dialog object as a literal object with all of the methods and properties it needs to have, and then use a loop to generate the fields in it. Or you could it by defining it as a string object and then execute it using the eval method.