How to automatically expand drop-down text or toggler?

This forum is for all Flare issues not related to any of the other categories.
Post Reply
Shihfei
Jr. Propeller Head
Posts: 8
Joined: Mon Nov 09, 2015 1:22 am

How to automatically expand drop-down text or toggler?

Post by Shihfei »

Hi,

Do I have any chance to automatically expand the drop-down texts or toggler driven texts in a page while others remain collapse?
kwag_myers
Propellus Maximus
Posts: 810
Joined: Wed Jul 25, 2012 11:36 am
Location: Ann Arbor, MI

Re: How to automatically expand drop-down text or toggler?

Post by kwag_myers »

I think (because I haven't thoroughly tested my theory) it depends on your output type. For WebHelp, each drop-down has an id, so you should be able to use a javascript with an onload command. I don't see any id in the HTML5 output, which you need in order to tell the browser which to open.

Just my opinion, but having drop-down text default to open defeats the purpose of putting it in. Or am I unaware of its benefits?
"I'm tryin' to think, but nothin' happens!" - Curly Joe Howard
John Cook
Propeller Head
Posts: 11
Joined: Wed Sep 09, 2015 2:25 pm

Re: How to automatically expand drop-down text or toggler?

Post by John Cook »

I have the opposite problem. I have drop-down text that opens expanded and I want it to open as collapsed...because that is the point of using drop-down text. Is there a way to fix that?

Never mind. It only happens when I click View Primary on the Project ribbon. It doesn't happen when I run the help from the default.htm file. Non-issue.
dinnes
Jr. Propeller Head
Posts: 4
Joined: Mon Apr 17, 2017 3:09 pm

Re: How to automatically expand drop-down text or toggler?

Post by dinnes »

I am trying to figure out how to keep drop-downs from automatically opening due to the search words entered to find the article. In my output, if I enter search text and then find the article, each drop-down that contains the search text open automatically.

I want them to remain closed.


Does anyone know how to set this, if it is even possible?
awells12
Propeller Head
Posts: 70
Joined: Wed Sep 02, 2015 7:51 am

Re: How to automatically expand drop-down text or toggler?

Post by awells12 »

dinnes wrote:I am trying to figure out how to keep drop-downs from automatically opening due to the search words entered to find the article. In my output, if I enter search text and then find the article, each drop-down that contains the search text open automatically.

I want them to remain closed.


Does anyone know how to set this, if it is even possible?
Just curious, why would you not want the dropdowns to open? Wouldn't the user want to see the search text highlighted in the topic, especially if it's something specific? If the search text appears in a dropdown and nowhere else in the topic, not having the dropdown open could be confusing.
Image
dinnes
Jr. Propeller Head
Posts: 4
Joined: Mon Apr 17, 2017 3:09 pm

Re: How to automatically expand drop-down text or toggler?

Post by dinnes »

Typically, the search word will appear in many places in the article, causing almost all of the drop-downs to open and the article becomes long and difficult to find the needed section.
Post Reply