I have a webpage that uses an accordion to list a bunch of things. When collapsed, all you see is the article title. When a user clicks on the ‘+’ the entry opens and you see the magic inside.
I’d like to be able to embed an anchor link within an accordion entry, so that when a user clicks the anchor link the accordion entry itself is opened and ready to be read.
We have the same issue here. The answer I’ve got from Hubspot was:
"Thank you for reaching out to us, my name is C. and I’ll be assisting you. You’re correct, the anchor links will not work on custom modules that use JavaScript code to display and hide content. In this case, clicking the accordion would execute a script in the page which hides and displays the content inside the accordion. However, clicking an anchor link can only bring you to a specified location of the page, it cannot execute JavaScript code or display content that’s already hidden.
I do understand the importance of a feature like this so i’d also recommend posting this in our ideas forum, which is actively monitored by our products team to see which tools our customers need. HubSpot uses our Ideas Forum to collect ideas on how we can improve the product for our customers."
So I thought instead of creating a new idea, I’d ask if you ever got a response to this thread?
Thank you and best regards