I have a panel in AEM forms which is configured with repeated settings. I have placed a text box component in this panel to have the end users add 3 different address to their form.
I am trying to capture the address value on each instance, so I can use them in a dropdown component for subsequent screens (so the user can pick one of the address value that has been captured from screen one).
Can some one shed light on how to iterate address field value so that I can populate a dropdown component with captured data. Thanks!
Are these answers useful? Help other community members by marking useful answers as accepted.
I am able to iterate through panel items for a specific field by obtaining the index value for the panel panel1.instanceIndex and iterating through out that index value to read the value for particular field.
I am trying to iterate through all textboxes in a certain panel.
I have an update panel with 6 panels inside it. Each panel has a number of textboxes. What I want to do is is find (and set or read the text) of only the textboxes inside a specified panel. The code below attempts to use find control to find the specific panel and then iterate over the controls and set all textboxes to "Yup"but it does not seem to work. Whats interesting is that when using find control with a specific control ID (the last two lines of code) the text box is found and the text is changed.