hi, I’m try to display the selected element from a collection list,
is it possible to pass the array index to the modal and get it from the collection?
or i can save the element in a custom variable and then use it, what is the best practice in weweb
also i can’t see the elements inside a modal in the navigator, i don’t know if it’s a bug or is somewhere else
Yes, you can utilize the array index in the modal.
create a variable called selected_item
create a workflow on the item that you want to click on to open the modal
as an action item in the workflow, change the selected_item variable to the index
in the modal, use the selected_index variable to filter your collection
On modals, you should be able to click on the section element in your navigator pane, and then under Specifics, it should show “Force Display in Editor”. This will allow you to view the modal even if its hidden for the UI.
You should definitely be able to see the elements in the navigator in tree view. If not, you may want to delete your modal, and add a new one.