Can you convert a longish code snippet into a dropdown?

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
DownintheHoller
Propeller Head
Posts: 11
Joined: Tue Mar 01, 2022 12:03 pm

Can you convert a longish code snippet into a dropdown?

Post by DownintheHoller »

Hello,

For HTML5 output, I am trying to convert a fairly long code snippet into a dropdown with the hotspot being a lead-in sentence/word: click the sentence/word and the code snippet displays. Off hand, I don't see a way to do this without mangling the code snippet. Any suggestions are appreciated. Thank you.
RStreets
Propeller Head
Posts: 63
Joined: Wed Apr 19, 2017 8:37 am
Location: Cambridge, UK

Re: Can you convert a longish code snippet into a dropdown?

Post by RStreets »

Unless I'm misunderstanding what you want, you can do this. An entire code snippet can be put in the body of a dropdown. There's no need to convert the content of the code snippet just wrap it inside the dropdown. I think the only issue you might have is if you want to use the caption from the Code snippet as the text for the dropdown hotspot: you'd have to copy the text into the dropdown head (and delete it from the code snippet definition).
For example:
code-snippet-in-dropdown.png
You do not have the required permissions to view the files attached to this post.
Rae Streets (Flare user since 2017, now on Flare 2023; Central user from 2020)
DownintheHoller
Propeller Head
Posts: 11
Joined: Tue Mar 01, 2022 12:03 pm

Re: Can you convert a longish code snippet into a dropdown?

Post by DownintheHoller »

Ah, I didn't even consider it that. Very good! And thank you very much.
RStreets
Propeller Head
Posts: 63
Joined: Wed Apr 19, 2017 8:37 am
Location: Cambridge, UK

Re: Can you convert a longish code snippet into a dropdown?

Post by RStreets »

You're welcome! :D

Regards,
Rae
Rae Streets (Flare user since 2017, now on Flare 2023; Central user from 2020)
Post Reply