Skip to main content
Inspiring
May 25, 2016
Answered

Use both standard action and conditional action scripts on same slide upon entry

  • May 25, 2016
  • 1 reply
  • 393 views

I want two different types of action scripts to run on slide enter of the same slide, one second apart.

1st script:  populate a variable with current date.  This is straight forward standard action.

2nd script (run 1 sec after first script):  If the above variable is more than current date, do this.  This is a conditional action.

How do I get Captivate to execute these two actions upon entering the same slide?  I can do it if 1st script is on previous slide, and the 2nd script on the second slide.  However that doesn't seem right.  I want these two scripts to run upon enter of the same slide.  I am using CP8.  Any suggestions would be greatly appreciated.

Thank you,

Sharon

    This topic has been closed for replies.
    Correct answer Lilybiri

    You'll have to use two decisions, where the first decision is a mimicked standard action, using a condition that always results in True:

    First decision 'Always'

      IF 1 is equal to 1

          Assign v_one with..                         the commands of your standard action

    Second decision ' ....'

       IF      v_one is equal to cpInfoCurrentDateString                         your conditional action

    However, in CP8 it is NOT possible to delay commands by 1 second, that is only possible in CP9. Why do you want to postpone the check?

    1 reply

    Lilybiri
    LilybiriCorrect answer
    Legend
    May 25, 2016

    You'll have to use two decisions, where the first decision is a mimicked standard action, using a condition that always results in True:

    First decision 'Always'

      IF 1 is equal to 1

          Assign v_one with..                         the commands of your standard action

    Second decision ' ....'

       IF      v_one is equal to cpInfoCurrentDateString                         your conditional action

    However, in CP8 it is NOT possible to delay commands by 1 second, that is only possible in CP9. Why do you want to postpone the check?

    Inspiring
    May 25, 2016

    Thank you so much for the information! I will definitely check it out.  I wanted to delay the 2nd action by 1/10th second because the 2nd action is dependent on the 1st action's result.

    Lilybiri
    Legend
    May 25, 2016

    No delay necessary in that case. Decisions are executed in sequence.