Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Dynamic checkbox list on dialog

alvin_l
Level 2
Level 2

Hi,

I have 2 dynamic list of topic and subtopic on a dialog which is actually being retrieved from the site tree. For example, here is the tree structure:

-- Topic A
   -- Subtopic 1
   -- Subtopic 2
-- Topic B
   -- Subtopic 1
   -- Subtopic 2
-- Topic C
   -- Subtopic 1
   -- Subtopic 2
   -- Subtopic 3

User want on that dialog to be, when user checked topic C, the subtopic of topic C will be appended to the bottom of topic C checkbox, the same goes for topic A and B. The subtopic checkbox list will be removed when unchecked. Please note that both topics and subtopics cannot be hard coded as it is totally dynamic based on site tree.

I created 2 fields (one topic one subtopic) and manage to retrieve the list by using AJAX to call back-end to obtain the list. However, I can only load the subtopic list into one single field and unable to append the list to the bottom of each topic, is there any ways I can achieve that?

Appreciate the helps.

 

Regards,

Alvin

0 Replies