Explore the community Forums Lectora Lectora Questions & Answers Make content appear or hide based on buttons

Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #374418 Score: 0
    Profile photo of Alex Schultze
    Alex Schultze
    Member
    beginner
    intermediate
    friend finder
    curious george
    picture perfect
    wise owl
    @aschultze6968

    Hi all,

    I am stumped and would appreciate some guidance on the following scenario.

    So I have multiple buttons on a page, each has an associated image and text. When a button is clicked its corresponding text/image appears. When another button is clicked it’s image/text needs to appear while the previously clicked button’s image/text needs to disappear.  Not sure how to make this conditional disappearing act occur.

    Thanks,

    Alex

     

     

    #374432 Score: 0
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    309 pts
    @timk

    No condition needed here, just make each button hide everything before it shows its own elements. If you group all elements you can hide everything with a single action.

    #374434 Score: 0
    Profile photo of Alex Schultze
    Alex Schultze
    Member
    beginner
    intermediate
    friend finder
    curious george
    picture perfect
    wise owl
    @aschultze6968

    Tim,

    The part I’m getting hung up on is how the the previously clicked button’s content is “told to disappear” when a new button is clicked.

    -Alex

    #374441 Score: 0
    Profile photo of Tim K
    Tim K
    Member
    contributor
    beginner
    intermediate
    advanced
    friend finder
    junior moderator
    advocate
    wise owl
    curious george
    Group Member
    309 pts
    @timk

    With actions of course 😉

    Select the textfields and images of all buttons in the title explorer (left pane), right-click and select “Group”. Give the group a name, e.g. “Content”. Add the same action to each button: Hide > Group “Content”

    Below that add the actions to show the respective elements

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.