Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Change a variable value just once and only after a slide is viewed

New Here ,
Sep 02, 2016 Sep 02, 2016

Hi folks,

I am a proficient user of Articulate Storyline 2 but currently I am trying a trial version of Adope Captivate 9. As you can read in the title, I would like to change a variable value just once and only after a slide is viewed.

For example: I go through the course from the beginning to the end and then I come back to the previous slides.

Now, each of the variables that I have associated to each slides, should be changed, let's assume from 0 to 1.

Furthermore, after the variable is changed from 0 to 1, I would like to increment another variable which represents the chapter progress.

I am sure it is possible to do it, but I am actually struggling to find a solution.

Peace&Love,

Alessio

497
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 02, 2016 Sep 02, 2016

I do not understand your question very well, sorry. Is this correct:

  • You created a user variable for each slide, a Boolean, with a default value of 0
  • When leaving a slide you want to change that variable to 1; you don't tell how you set up navigation. If you do this with a custom Next button it is pretty easy to create a shared action that will:
         Assign v_slide with 1             define v_slide as a parameter, which can be replaced on each slide with tha user var
         Go to Next Slide
  • Incrementing that 'other variable' has to happen when? You can add it to that same action, without defining a parameter since the user variable will always be the same, add the command:
        Increment v_progress
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 05, 2016 Sep 05, 2016

Hi Lilybiri​, thank you for your prompt reply.

Yes, I would like to do something like that.

Let's assume I have created those variables:

1) V_Slide, (with value 0): it should change when a user has completely seen a slide (in Storyline 2, I set this trigger when the timeline finish, but here in Captivate I couldn't find this trigger). Hence, I think that your advise (use the next button as a trigger) could be a reasonable solution.

2) V_ProgressChapter (which it should be a number variable): its value increments by 1 each time a V_Slide changes its value.

Did I make my points more clear?

Thanks in advance,

Alessio

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 05, 2016 Sep 05, 2016
LATEST

Captivate has an On Exit event as well, which can trigger an action but I rarely recommend to use that event (look at: Events and (advanced) Actions - Captivate blog ) because it only occurs when the last frame of a slide is reached. If you have a Next button that is not the case, because the frame where the action 'Go to Next Slide' happens is the pausing point of that Next button.

You need a user variable for each slide, although I don't know what you want to do later on with that variable? Do you want to use it when the user returns to that slide? That is not clear to me.

Same with increment for that other global variable v_progressChapter (be careful: names are case sensitive: if you want that to happen only the first time that a slide is reached, you'll need a conditional advanced action, not a standard action. If you don't allow to return to a slide, and want to have the action triggered by a Next button on each slide, I would recommend a shared action as mentioned, so that you only have to change the specific slide variable (v_slide1, v_slide2....) when applying the action:

  Assign v_sliden with 1

  Increment v_progressChapter by 1
  Go to Next Slide

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources