Expand accordion based on form selection

Hello!

When users register to our website by filling out a form, they can select 1 of 10 cities as their favourite. After the registration, they are forwarded to a page with an accordion with one tab per city. We would like to automatically expand the favourite city tab based on the prior selection.
For example: if the user selected city A as their favourite, the accordion tab with city A should be expanded. if a user selects city B, the accordion tab with city B should be expanded.

Any ideas on how this could be achieved? Thanks for your input!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.