Forum Discussion
Chad_V_Kealey
Jan 19, 2022Iron Contributor
URL query string to expand collapsed section on page?
I've been using collapsible sections (a LOT) lately to create FAQ type pages in SharePoint. It makes for a very intuitive interface for viewers in the site. Sometimes, though, we want to point someon...
- Feb 12, 2022Add a Text with header format in the section. Sharepoint will give this header a page anchor automatically. Link to this page anchor via URL. The section will now be expanded.
Chad_V_Kealey
Feb 14, 2022Iron Contributor
That's A solution, but may not be ideal in some cases. For example, if you're using collapsing sections to create an FAQ page. One of the questions is "How do I change my password?", so you create a collapsible section with that title (so it's visible when the section is collapsed. The method you're suggesting would require duplicating the question (or at least adding a heading) inside that section. Sure, you could make it something like "Answer:" so you're not duplicating the question, but that would still look a bit off.
Ideally, since every collapsible section has a heading-formatted title, there would be an option/setting along the lines of "Expand section on focus".
Ideally, since every collapsible section has a heading-formatted title, there would be an option/setting along the lines of "Expand section on focus".
HeinrichSchwarz
Feb 14, 2022Brass Contributor
You're definitivly right. The solution is only a work around. For my case it is sufficient. (I'm lucky: Each of my Sections already had a structure with four given headlines).
If I now link to the first headline in the section I have the problem that the title is cut off (because the headline is top of the page).
-->So it is still the best solution - but hopefully in one of the next releases there will be something built in (including a feature that expanded section will be automatically collapsed if you use another link to switch the "questions" on the page....
If I now link to the first headline in the section I have the problem that the title is cut off (because the headline is top of the page).
-->So it is still the best solution - but hopefully in one of the next releases there will be something built in (including a feature that expanded section will be automatically collapsed if you use another link to switch the "questions" on the page....