Skip to main content
Participant
July 29, 2019
Question

Dynamic Number of Checkboxes

  • July 29, 2019
  • 1 reply
  • 311 views

Hello All,

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.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 29, 2019

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.