Skip to main content
Participating Frequently
September 28, 2016
Question

How to show and hide "Group" in Captivate 9?

  • September 28, 2016
  • 2 replies
  • 1953 views

Single objects can be hidden using advanced actions but not groups. Is there any way to do this in captivate 9 ?

For Example:

Cp. show()

Cp. hide ()

This does not work for groups.

    This topic has been closed for replies.

    2 replies

    Allen_Partridge
    Adobe Employee
    Adobe Employee
    September 28, 2016

    Just trying to clarify this question - you are talking about calling show / hide from Javascript in this case, not from Advanced Actions within Captivate, yes?

    rchil
    Known Participant
    September 28, 2016

    I do this all the time with Shared Actions.

    Lilybiri
    Legend
    September 28, 2016

    Show/hide groups is possible with advanced and shared actions, apparently

    not with JS. Enable/disable a group of buttons or other interactive objects

    is not possible with shared/advanced actions. For that goal I am using the

    @ syntax of that amazing CpExtra widget by InfoSemantics. In my opinion that

    widget is indispensable for most developers for HTML output.

    TLCMediaDesign
    Inspiring
    September 28, 2016

    They will not work for groups, as there are no groups in the Captivate output, they are only in the IDE. If you use a Show in Captivate, it writes a show for each item in the group in the JavaScript.

    You can name the group items if you name them specifically and the run a loop to find all items that fit a certain criteria. I also include a loop to reset all items on the slide to their initial visibility state.

    RodWard
    Community Expert
    Community Expert
    September 28, 2016

    If your content is for HTML5 output, then the CpExtra HTML5 widget allows you to use @syntax or #syntax to HIDE or SHOW any object simply based on its Item Name.

    More information here:

    Captivate Action Extensions | Infosemantics Pty Ltd

    leonardo_portillo_contractor
    Participating Frequently
    December 31, 2019

    It so looks like you guys from the community or maybe even Adobe themselves have a very profitable partnership with these CpExtra guys because as of Dec. 2019, I see that CpExtra has been your answer for years for many many requests for simple things that Captivate should have accomplished years ago.

     

    For example, making cp.hide() and cp.show() work for groups wouldn't take more than a few hours or, say, a few days. Maybe, just code a for() loop that iterates the items in a group and executes cp.hide() or cp.show() on them. That would easily work for both SWF and HTML5 output. If I can do it with JS in my simulators while I drink a cup of coffee, why would Adobe take literally years to include it in their development plan, being that so useful? Come on!!!!! I just won't believe that nobody has requested it already in all these years. I cannot actually tell for sure but, it makes so much sense: why would you guys push Adobe to listen to these requests and kill your milking cow? I'm sorry but, you know what they say: think wrong and be right!
    P.S.  Maybe I'm too harsh with you guys because I come from an open-source community in which the best for the most is the priority, not the best for a company's commercial plan. I keep using CP because I'm paid for it, not because of my experience with Adobe, it's documentation or it's community. Very very disappointing. I'm sorry guys.

    Best regards!