I’m building a Q&A section with the following functionality:
1. When a Question(left side bar ) (CMS item) is clicked, the corresponding Answer should appear dynamically on a right sidebar.
2. The clicked Question should be visually highlighted (e.g., background change).
3. The Answer content should update smoothly without reloading the page.
Challenges
• How can I link the clicked Question to the right Answer dynamically?
• How do I apply active state styling to the clicked Question?
I’ve tried using Collection Lists and Interactions but can’t get this to work. Any guidance or custom code suggestions would be greatly .
Thanks, but this won’t work because I also need two form fields, and the form will fit inside the tabs links part. Here is a demo link. As you can see in the preview link, I need a left sidebar for the questions along with the two form fields, and I need dynamic answers on the right sidebar. When I click on any question, its corresponding answer should appear. I need a solution by today.