Updating an accordion card to default expand the first answer

Hi,

I’m considering updating my experience so that the cards are always expanded. I see a parameter called “isExpanded: false” for the accordion card.

Is there any additional updates besides updating it to “isExpanded: true” that I need to do to enable expand the accordion card on page load?

Hi Lisa,

We don’t recommend expanding the first card by default, as then we lose analytics on which FAQs are being interacted with the most. To demonstrate value for your customer, we should keep FAQs collapsed by default.

Hello! I definitely understand the reasoning behind your answer to Lisa’s question. However, we have a scenario where we are using a pinned result to render a very specific FAQ. Since we use the accordion layout by default, this FAQ sits on the search results page all alone but still requires the user to make an additional click to expand it.

I tried adding returnExpanded: true in the JSON for the RETURN_PINNED_RESULT, but either have the syntax wrong or it’s being overriden by our page template.

Soooo, while I understand it’s not a best practice in the overall, I’m still curious whether a pinned result can appear expanded.

Thanks!