Skip to main content
Participating Frequently
May 3, 2012
Beantwortet

Show/Hide text caption

  • May 3, 2012
  • 1 Antwort
  • 817 Ansichten

I want to hide a text caption when the user enters the screen but want it to display it when user clicks a click box for the third time (maximum attempts). How can I do this? Advanced actions or JS. Please help. *

    Dieses Thema wurde für Antworten geschlossen.
    Beste Antwort von Lilybiri

    Hello and welcome to the forum,

    Possible with Advanced actions, have multiple examples on my blog.

    This will be the work flow:

    1. create a user variable v_counter, if the user cannot return to the slide no need to initialize it on entering the slide because if there is no initial value it starts at 0
    2. create the text caption TCWarning and set it to invisible in the Properties panel
    3. create a conditional advanced action that will be triggered by the Success event of the click box; do not know which version of CP you are using:
      1. increment the counter - in CP5/5.5 in a mimicked standard action which will be the first decision 'Increment':
        • IF 1 is equal to 1
        • THEN Expression v_counter = v_counter + 1
      2. check the value of the counter in a second decision 'Show'
        • IF v_counter is equal or greater than 3
        • THEN Show TCWarning

    Lilybiri

    1 Antwort

    Lilybiri
    LilybiriAntwort
    Legend
    May 3, 2012

    Hello and welcome to the forum,

    Possible with Advanced actions, have multiple examples on my blog.

    This will be the work flow:

    1. create a user variable v_counter, if the user cannot return to the slide no need to initialize it on entering the slide because if there is no initial value it starts at 0
    2. create the text caption TCWarning and set it to invisible in the Properties panel
    3. create a conditional advanced action that will be triggered by the Success event of the click box; do not know which version of CP you are using:
      1. increment the counter - in CP5/5.5 in a mimicked standard action which will be the first decision 'Increment':
        • IF 1 is equal to 1
        • THEN Expression v_counter = v_counter + 1
      2. check the value of the counter in a second decision 'Show'
        • IF v_counter is equal or greater than 3
        • THEN Show TCWarning

    Lilybiri

    suni_acAutor
    Participating Frequently
    May 3, 2012

    Thank You very much. I am using Captivate 5 and this is exactly what I wanted.

    You are a saver.

    Lilybiri
    Legend
    May 3, 2012

    This question is still marked as Not Answered? What do you want more?

    Lilybiri