Skip to main content
Known Participant
May 22, 2018
Answered

Captivate system variable addition

  • May 22, 2018
  • 2 replies
  • 550 views

I would like to subtract 1 from the system variable cpInfoCurrentSlide.

So I can have page numbering that starts on the 2nd Slide and starts with the number 1, instead of 2.

I've tried without success:

$$cpInfoCurrentSlide$$-1

$$cpInfoCurrentSlide-1$$

$$cpInfoCurrentSlide$$-'1'

    This topic has been closed for replies.
    Correct answer Lilybiri

    Hmmm,  I answered a similar question a couple of days ago? Is this a double post?

    Here is the link to that 'discussion', where I posted an answer, which I'll repeat here:

    Slide numbering - eLearning

    My answer:

    I would define a user variable v_slide. Insert it in a text container on the Main Master slide: the Title master slide in any Captivate theme doesn't use objects from the Main Master slide. So you'll have that variable only on all the other slides, based on any content slide using objects from the Main Master slide. You may have to check that, if you also used the Blank master slides which is not taking objects from the main master slide neither.

    You have to use the Expression command to calculate the correct value of v_slide because that command is not available as simple action (in the Actions tab). Create an advanced action EnterSlide with two commands: 

    Expression v_slide = cpInfoCurrentSlide - 1

    Continue

    Then select all the slides in the Filmstrip, (Title slide may be included) with CTRL-A and use the On Enter event in the Actions tab to assign that advanced action EnterSlide.

    2 replies

    Known Participant
    May 22, 2018

    Thanks Lilybiri.

    It is a double post, but only because I have no record of the post sending, and it does not appear in my Inbox. So I have not seen your reply.

    Lilybiri
    Legend
    May 22, 2018

    OK, it is confusing. I just duplicated my answer from the discussion. I find it strange, since you were the author of that discussion that you didn't get any notifications. Mailing at this moment is not fully functional, probably due to the GPDR regulation in Europe which is starting end of this week.

    Lilybiri
    LilybiriCorrect answer
    Legend
    May 22, 2018

    Hmmm,  I answered a similar question a couple of days ago? Is this a double post?

    Here is the link to that 'discussion', where I posted an answer, which I'll repeat here:

    Slide numbering - eLearning

    My answer:

    I would define a user variable v_slide. Insert it in a text container on the Main Master slide: the Title master slide in any Captivate theme doesn't use objects from the Main Master slide. So you'll have that variable only on all the other slides, based on any content slide using objects from the Main Master slide. You may have to check that, if you also used the Blank master slides which is not taking objects from the main master slide neither.

    You have to use the Expression command to calculate the correct value of v_slide because that command is not available as simple action (in the Actions tab). Create an advanced action EnterSlide with two commands: 

    Expression v_slide = cpInfoCurrentSlide - 1

    Continue

    Then select all the slides in the Filmstrip, (Title slide may be included) with CTRL-A and use the On Enter event in the Actions tab to assign that advanced action EnterSlide.

    Known Participant
    May 24, 2018

    Thank you. This worked well.

    As for the duplicate post, that is confusing. At the time of posting, I read a notification saying the post would be reviewed by Admin first. This is not something I've seen before and figured it was a change in policy. But when I posted again, it went through straight away.

    Lilybiri
    Legend
    May 24, 2018

    I don't know but when you post a question directly in the Adobe Jive forums, mostly it will have to be approved by a moderator (like me) to avoid spam etc. Maybe that was the message you did see? In most siutations the approval will be rather quick, because there is always a moderator awake somewhere on the world.

    When you post a blog, a discussion etc in the portal it has to be approved by the staff, which may take longer (it does for my blog posts anyway).