Can I rock an "else if" in advanced actions.

Hey all,
Is there a way to add an "else if" statement to conditional actions in the captivate advanced actions dialogue?
The if>then>else is obvious but I want if>then>else if>then>else.  And I don't want to have to build a widget or write JS if I can avoid it.  If I do have to dust off my limited JS skillz, can you point me to a quick/easy tut on using the "execute JS" window re: accessing CP and user variables etc.
Thanks in advance

LIlybiri,
Thanks for the quick response as always.  First, I'm in Cap 7.  I'm making a basic unit conversion slide using the dropdown widget and text entry box.
I've given the dropdown the var name "convertFrom" and the text entry box the var named "convertNum."  There are three possible selections in the dropdown (XXXX, YYYY, and ZZZZ) and three labels reference variables and will change once you hit the go button: $$displayXXXX$$ $$displayYYYY$$ and $$displayZZZZ$$.
normally I'd do an:
if (convertFrom = XXXX){
  do math;}
else if (convertFrom = YYYY){
  do math;}
else if (convertFrom = ZZZZ){
  do math;}
What would you suggest that gives me the flexibility to publish both a swf and html5 lesson (which is why I want to keep it in advanced actions).

Similar Messages

  • Can you open multiple files using an advanced action?

    I have either Captivate 5.5 or Captivate 7 to work with. Currently my project is in 5.5.
    I have a button that I want to open three PDF files. I created an advanced action, selecting Open a new file/URL and selected the file name. Currently they are set to open in a new window.
    When I test the button, only one file opens.
    If I set one to open in a new window and another to open in the top window, I lose the course but get two to open.
    Is there a way for me to open each of these files in a new window using the same button?

    You could do it by executing javascript:
    in Captivate: open_win()
    add this to the head section of your html page that loads the captivate object:
    <script type="text/javascript">
    function open_win()
         var url1 =" http://www.google.com";
         var url2 =" http://www.yahoo.com";
         var url3 =" http://www.bing.com";
         window.open(url1);
         window.open(url2);
         window.open(url3);
    </script>

  • Using Advanced Actions to Make a button appear only after three other click boxes have been clicked.

    I'm working on an interactive brief, and I'm making slides where the user has to click the correct items and then a "Contine" or "Next" button appears so they can move to the next slide.  Any help out there?  I have been using Captivete but I do not have a lot of experience withthe Advanced Actions.  I'm sure this is a pretty simple solution for all you captivate Wizards out there.
    I'm using Captivate 5.5.
    Thanks for any help!
    heymattmann

    Hi Matt,
    Can you post some pictures of the Advanced Actions you're trying to use that aren't working? It might give people some ideas of specific ways to help you. It can be a bit frustrating to start out, since there's not a lot out there in Adobe's official stuff for Adobe Actions, but Lilybiri's blog really is a great resource.
    Others might do this differently, but for your scenario, I would create 3 similar Advanced Actions, each one assigned to execute On Success for a clickbox, and three Variables to keep track of whether or not the user has clicked a particular box. There's also your next button, which starts out hidden. Make sure to name it something like NextButton so you can find it easily in the dropdown box when making your Advanced Actions.
    So I might name the actions and variables: actionClickBox1, actionClickBox2, actionClickBox3, and varClickBox1, varClickBox2, varClickBox3 (when you create the variables, set their default values to 0). You can call them whatever you want, just don't reuse names anywhere else-- you will run into problems.
    The idea behind the actions is that each time the user clicks a box, you change the variable for that box to keep track of the fact that it has been clicked. That part you were on the right track for. The next part of the action then checks to see if all the clickboxes have been clicked (aka, if all the variables have been changed from their original values to the new one). If they are, it shows a next button. If not, it does nothing.
    From what you said, I think you were trying to add an Advanced Action to show the next button to the next button itself. This would only execute when the user clicks that button, which makes it impossible-- you'd have to click the next button in order to show the button so that you can click it... oh dear. The decision of whether or not to show the next button needs to be part of the clickbox actions, so that upon clicking the third and final box, the next button will pop up. Because it makes this decision (to show or not to show) on each clickbox, the order you click them in doesn't matter. It will only show the next button once all the variables have been changed.
    You will see that the actions are all very similar, except for the variable that they change:
    actionClickBox1
    first tab in the conditional action:
         if varClickBox1 is equal to 0 <-- default value of variables must be 0
         then assign varClickBox1 with 1 
    second tab in the conditional action:
         if varClickBox1 is equal to 1 AND
         if varClickBox2 is equal to 1 AND
         if varClickBox3 is equal to 1
         then show NextButton
    actionClickBox2
    first tab in the conditional action:
         if varClickBox2 is equal to 0
         then assign varClickBox2 with 1
    second tab in the conditional action:
         if varClickBox1 is equal to 1 AND
         if varClickBox2 is equal to 1 AND
         if varClickBox3 is equal to 1
         then show NextButton
    actionClickBox3
    first tab in the conditional action:
         if varClickBox3 is equal to 0
         then assign varClickBox3 with 1
    second tab in the conditional action:
         if varClickBox1 is equal to 1 AND
         if varClickBox2 is equal to 1 AND
         if varClickBox3 is equal to 1
         then show NextButton
    Hint: If you set up one of these actions and save it, you can click a button in the top right hand corner to duplicate it and then just change the few things that are different to make the next action. It saves you from having to create it three times from scratch!
    Wow, this is long... I hope it isn't overwhelming in its length, and that it helps! Advanced Actions really are a cool feature once you get past their quirks...

  • Is there a way to restrict the number of attempts for a remediated question using advanced actions?

    I have the following slides in my project:
    content slide 1
    content slide 2
    question slide 1
    question slide 2
    Question slide 1 is a question about content slide 1. Question slide 2 is a question about content slide 2. I would like to restrict the total number of attempts to two for each question. If question 1 is answered incorrectly on the first attempt, the learner would be returned to content slide 1 for review. Clicking the next button will take the learner back to the missed quiz question and allow them a second attempt to answer it correctly. If they answer it incorrectly again, it is scored as incorrect and the learner is taken to question slide 2.
    Can this be done or does remediation keep repeating until the learner answers the question correctly?
    If that is the case, can I achieve my objective by using advanced actions? And, if so, can you provide step by step instructions on how to do this?

    I think it could be possible, but giving you step-by-step instructions, sorry, that would take a lot of time. Did you use advanced actions already? My archived blog has a lot of use cases and tutorials, but I think it is not fair to ask on a forum for step-by-step instructions for each use case you want to create.  The most important thing will be to make sure that the user always remains in the Quiz scope, you can use the new system variable cpInQuizScope while testing. There is no system variable for attempts on question level, only one on Quiz level, so you'll have to create a user variable to track the attempts on question level. A big problem is that when you leave a question slide, without using the remediation work flow, the attempts are considered as finished. Personally I would prefer for that reason to not use the default question slides. You could try out a combination of remediation and advanced actions, never did test that?
    Lilybiri

  • How can you trigger more than 1 advanced action?

    I wonder if someone can answer a very quick question for me that I'm struggling with at the moment
    I have 6 stacks of 16 images. I have the user select the name of the image they want to show in each stack, and then I have an advanced action that runs to show only the image they have selected. Currently I have 6 actions, one for each stack of images.
    What I need to do is to run all 6 advanced actions as the user enters a page so they only see the 6 images they have selected on the previous slide. My problem is that I can only seem to run one advanced action upon slide entry (or from a button or anything else). Is there a way to combine advanced actions, or to run more than one action from a single command? Or does this require a different approach?
    Thanks in advance for your help.
    James

    Thanks Lilybiri and RonWard,
    I guess I could have been clearer in my question.
    I'm using Cp5 and to give you an idea of what I'm doing I've pasted an image of the slide I'm playing with below.
    Each image you see here is actually a stack of 16 images that are hidden on slide enter. There is a combo box under each stack that allows the user to choose the name of the image they want to use, and the button triggers an advanced action that shows the image that has been selected.
    Ultimately what I intend to do is to move the combo boxes to the previous slide, and on slide enter only the 6 six selected images will be shown. I'm then going to use a drag and drop widget to create a question about of all of this. The teacher will select which 6 images are relevant to their students, enter some information (definitions, quotes etc) that are related to each image, and the students will have to drag them to the correct image / icon.
    So... I've created 6 advanced actions, one for each stack of images. (I suspect that was my mistake).
    I've attached an image of the action. For each Action there are 16 parts to it. One for each image. You can see here that the action is fairly simple. It just checks the variable that comes form the combo box, and if it has been selected, then it shows the appropriate image. If not it just moves onto the next part of the action which checks for the next image being selected.
    There is one action for each stack of images - so 6 actions. If there was a way to combine them it would be very helpful - but I'm suspecting that's not possible. Alternatively if there was a way to trigger all of them together that would work - but again I don't think that's possible. So what are my options.
    Finally, and here's the biggy that I don't think can be done. As I eluded to above. The idea here is that a teacher will set this up and a student will then complete the activity. Is there anyway for the teacher, without Captivate, to select these images and enter some other variables, and have that information propagated across a network so many students can use the project with the variables the teacher enters just once?
    Thanks heaps for your help. This forum is great. I'll spend some time reading the blogs mentioned also. I'm so thrilled that Captivate is finally letting me do some of the elearning things I've wanted to do for years. I'm a teacher by training and now consulting and building resources for schools.
    Thanks again
    James

  • Can I call a specific time of the timeline in an advanced action?

    Can I use the specific time of the time line to trigger an advance action? If I can what is the correct syntax to call the timeline information?
    eg:
    in a conditional advanced action
    IF
    Timeline - is equal to or greater than - 00:16   
    AND
    Timeline - is less than or equal to - 00:20
    ACTION
    Show - Image 21
    ELSE
    Hide Image 21

    Double post, see: Can you add Advanced actions to an image?
    My list with system variables will not really help, I'm afraid. My suspicion (and yours in the other thread) is that the OP doesn't understand the design of the Timeline.

  • Can I use conditional and advanced actions on the same button?

    I'm fairly new to Captivate, but come from a background of flash and am struggling to use Captivate to do some things I would have expected to be fairly simple and a normal requirement.
    I want to create a screen with a number of interactive objects, in this case pictures, that the learner clicks on to display a piece of text.
    On clicking the next picture the first piece of text is hidden and a second piece shown.
    There are 6 pictures/buttons that need to work this way.
    However I also want to assess whether all the buttons have been used, as we have to force the user to view the entire slide before they continue.
    I can do the hide/show of text and buttons, and I've written a conditional action to check the variables for each button. However I don't know how/when to call this action.
    I was hoping that in my advanced action for each button I could add in a call to the conditional 'check variables' action, which would nicely fulfil this requirement, however this doesn't seem to be the case.
    I have also got animation/effects on the timeline before the images are on screen meaning I don't want to go back to the start of the timeline to use a 'on enter' event.
    I'm surprised this isn't something more people need as although it may be frowned upon out in the e-learning field, disabled navigation is frankly not going away and working for any large corporation will be a must.
    If anyone can shed some light on this, or maybe suggest a better approach then I would appreciate it.
    Thanks.

    Hi Lilybiri,
    Thank you for this, I suspected that this was going to be the way I would have to progress.
    I have to ask though, at present the company I work for uses a very straight forward off the shelf WYSIWYG elearning content designer.
    One of the core template pages is a hotspot page, which works in the way I have explained at the top.
    This is also one of the standard e-learning pages I have used in all my other positions, including when building in Flash.
    It seems incredible to me that to do such a simple, commonly used, page type we will require what is a fairly involved process rather than this being one of the page types or templates.
    I am currently trying to pilot Captivate to show how much better it is to the current product, however the other designers have no programming background and I think will stuggle with the conditional actions, meaning that this is pretty much going to be a no go which I'm gutted about...
    I think I stand a chance of teaching advanced actions but anything beyond that is unlikely initially.
    RodWard, thanks for your comments, I'm finding the actions ok in Captivate, as I say above I'm just amazed that this simple and commonly used page is so convoluted to create!
    My other frustration is the lack of control of the events, not being able to specify x and y for motions etc. but I'm finding work arounds...
    Is there a way to create my own page template? Could I write all the actions and bundle that into a page to provide the other designers so with some naming conventions they could use this functionality?
    Thanks for your help.
    Matt

  • How can I display the elapsed time of the course using Advanced Actions in Captivate?

    I have a Captivate course which is approximately 35 minutes in length. On each slide I would like to display to the user, the current elapsed time.
    EXAMPLE:
    25/35 minutes complete
    The 35 would remain static, so I have been working with the elapsed time system variable in CP: elapsed:$$cpInfoElapsedTimeMS$$
    I can't seem to get the variable to properly display the elapsed time in minutes, rather than miliseconds. Attached is a screen shot of my advanced action.
    Can anyone provide guidence regarding how I should structure this differntly?

    I talked about that Timer widget in that blog post and pointed to another one:
    http://blog.lilybiri.com/timer-widget-to-stress-your-learners
    If you are on CP7, you'll have this widget also as an interaction, which means it is compatible with HTML5 output. Amd there is also an hourglass interaction, with similar functionality but... did not blog about that one
    PS: Check Gallery\Widgets to find all widgets. Default path is set to Interactions

  • I need to update my phone, but my computer broke, and do not have a new one. I have an Itunes account, can I use someone else computer to go through with the update?  Is there a chance of loosing all my data, ie: music/photos?

    I need to update my phone, but my computer broke, and do not have a new one. can I use someone else computer to go through with the update if i log on with my itunes account or Is there a chance of loosing all my data, ie: music/photos? And if all else fails can i go to the apple store and have them update my phone?

    Update to what? The 3G you want to update? You have ios3 or 4 on that 3G?
    Go to a friend, authorize that pc.
    Read this : http://support.apple.com/kb/ht1848
    and this : http://support.apple.com/kb/ht2519
    Make a backup of your stuff (from the phone. apps/photos/music/blabla). Update your phone. The phone will restore the backup automatically.

  • Where can I find detailed, systematic HELP for advanced topics relating to Thunderbird?

    In moving from XP to Windows 7, I opted for Thunderbird as email client in order to bypass Microsoft's hyper-intrusive Windows Live Mail (I used Outlook Express for years).
    I have a very complicated email structure, and it's taken me weeks (seriously) to learn how to replicate it in TBird. Now I'm trying to customize TBird further, but none of the TBird articles/forum Q&A's/Google searches address my questions.
    There is no live tech support for TBird, and I'm just about ready to leave it for good. However -- one last effort: where can I find detailed, systematic HELP for advanced topics relating to Thunderbird?
    Thanks.

    I am no expert, but I don't know of any authoritative reference as to what elements of HTML and CSS are supported in Thunderbird. However, as I believe you appreciate, it's more than just what Thunderbird supports, but one must also think about what is likely to work in other email clients. Keep it simple. Avoid ancient deprecated tags that other email clients may not support, and for similar reasons, avoid cutting edge technology. Remember that recipients using tablets or smartphones won't appreciate large fancy email documents.
    The only thing ''guaranteed'' to work in email is plain text. ;-)
    If you haven't already discovered it, the Stationery add-on is designed specifically to support OE stationery in Thunderbird. Your existing stationery may "just work" in this add-on. It makes switching between various stationery templates much easier, but I'm not confident that it will affect interpretation of your CSS or HTML coding.
    Your code is at least clean and minimal. Most times my involvement with troublesome templates and signatures centres on the horrible bloat and mso custom code generated by Word or Outlook.
    Having said that, you and I are mortal enemies, as I don't have much patience with what you aspire to achieve. I specifically don't like background images, nor being obliged to suffer other folks' bizarre choice of typefaces and colours (but your simple 12pt black Tahoma is quite inoffensive. ;-) ) I'm of an age where my tolerance and eyesight are easily offended.
    Nonetheless, I'm intrigued by how to parse the tag for the background image, as it doesn't look like a legitimate pathname to a graphics file. Does the background image actually appear as required?

  • Can i use anything else to sync my ipod?

    i keep having the message that my ipod cannot be updated as there is a missing file. I've followed the guide on here and have reinstalled it etc and followed advice on here, but it still doesn't work.
    I'm sick of i-tunes, can I use anything else to put songs on my ipod? I know that media player doesn't recognise ipods, but is there something else I can download to put songs on.
    This is really frustrating me, and I'm thinking of taking my ipod back, have only had it 3 days, but if I can't put anything on it there's no point in me having one.

    You could have a look at Anapod, XPlay or EphPod:
    Anapod Explorer
    XPlay 2
    EphPod
    These programs will all let you manage an iPod however there are a couple of things that they won't do:
    a) You won't be able to update the firmware on your iPod if a new version comes along. The iPod software updater is integrated into iTunes 7
    b) If purchasing iTunes Music is something you wanted to do you won't be able to buy from the iTunes Music store.

  • Display selection of user variables later on in project - can't get advanced action to work

    Hi all,
    I'm working on a sales training with Captivate 5, based on PPT. I want to do the following, but can't figure out how to design the advanced actions to do it:
    The learner is asked to choose 1 of 3 products he wants to work with (ok, that's easy).
    For that product he's asked to provide 10 features in TEBs (so far so good, 10 user variables created for each feature).
    As a next step, he needs to choose the top 3 features with which he wants to work further. The chosen 3 display a check mark when the respective clickbox is clicked, when he chooses the 3rd, a 'done' button & a caption 'click here...' appear. Advanced actions working ok, see below what they look like. If there's an easier way to do that, please let me know - took me hours to get this to work!
    One issue I face is, that I don't know how I could allow the user to change his choice, i.e. 'un-check'. Currently, checked is checked - no way for the learner to change his mind.
    But even more importantly:
    I need to display the content of the 3 checked/selected variables at a later stage in the project. So, say the learner choses feature 2, 3 & 6 as the most important by checking the respective clickboxes behind the displayed variables (v_neo_f1 to f10) - how do I need to change my advanced action, so that I can generate variables v_neo_chosen1 - 3?
    As you see in the screenshots above, I've tried to do that by creating an additional variable for each of the 10 features and assigning the value 1 when it's checked. That way I could check later in the project, which of those variables has the value 1 - but I don't know how to link this variable (v_neo_f1_check) then to the variable for the feature in which the text I need to display is stored (v_neo_f1).
    This got me a major headache & hours of frustration already - can any of the guru's help me out here?
    If anybody is interesting in creating the necessary actions for me at a reasonable rate, please let me know. I'm bordering desperation.
    Happy new year,
    Anja

    I'm not sure I fully followed exactly what you are trying to do, but essentially what I got from your post is that its pretty complicated and you want to create new variables on the fly.
    For that sort of thing I would suggest that advanced actions may not be advanced enough for what you are trying to achieve and that you should go for a Flash Widget instead.
    For anybody getting started on widgets, I throughourly recommend the Widget Factory by the Widget King, which can be found at:
    http://www.infosemantics.com.au/widgetking/
    I also strongly recommend the following video:
    http://www.adobe.com/cfusion/event/index.cfm?event=register_no_session&id=1719643&loc=en_u s
    Alternatively, as Lilybiri suggests, there may already exist a widget that does what you want it to do.

  • DynamicLink Media Server is not available. I can't open any video file in Photoshop CC and when it does, Photoshop freezers and I can't do anything else. I'm using OS X 10.9.4-3.1 GHz Intel-16 GB DDR3. Any help please?

    DynamicLink Media Server is not available. I can't open any video file in Photoshop CC and when it does, Photoshop freezers and I can't do anything else. I'm using OS X 10.9.4-3.1 GHz Intel-16 GB DDR3. Any help please?

    Indicas que no puedes abrir ningun archivo de video, se supone que has probado varios formatos, mp4, mov,..
    Has actualizado el OSX a 10.9 ?, funcionaba antes? La versión de Photoshop es la CC, no la CC 2014?
    En el menú de Ayuda>Actualizaciones, cual es el resultado, dice que esta al día?
    Tienes abiertas otras aplicaciones?
    Prueba a cerrar todo, espera media minuto y abre Photoshop a ver que ocurre.
    (Estas utilizando un MacBook Pro?)

  • My iPad is downloading my video purchases automatically, but it's only downloading two episodes from Supernatural S10 that I have watched and deleted. I can't stop it from downloading, and I can't download anything else because of it. Help!

    My iPad is downloading my video purchases automatically, but it's only downloading two episodes from Supernatural S10 that I have watched and deleted. I can't stop it from downloading, and I can't download anything else because of it. I don't know what to do. There is some sort of glitch happening and it's really affecting my iPad. I've tried letting it download but before it completes, it says it is unable to complete process and asks me to try again. I am on a limited interest data plan and can't afford these downloads to continue. What can I do?

    Have you tried deleting the App within the Settings menu (rather than from the Home Screen)?
    Settings>General>Usage>
    From the Apps list, find the App (press "Show all Apps" if the app is not in the immediately shown list), tap on the app you wish to delete, then tap "Delete App"

  • Can't go to next slide after adding advanced action to answer and other

    Hi,
    I'm creating a quizz and there are some problems I can't
    solve.
    I have a flash project with login page, where user should
    fill name, company and e-mail. To this e-mail I have to send the
    results of the quizz. After you correctly fill the gaps and click
    OK, my flash aplication starts within the Adobe Captive 4 project
    (swf file). And now problems:
    1. In my captivate project: I have a question, 3 answers, 3
    possible attemps and one correct answer. If user answer wrong,
    there is a grey hightlight box, which should apears over my chosen
    wrong answer and stay there to mark already chosen answer and there
    is also a text animation "Sorry, your answer is not correct." under
    the quizz (on the same slide), which appears instead of error
    message. No problem, it works, I made a script for it, which is
    joined to every wrong answer (in Edit Question > (Answers)
    Advanced > Execute Advanced Action). But the problem is with
    correct answer (it shows text animation "Congratulations!" and
    green hightlight box). If I specify the event on correct answer and
    then submit the right answer, it shows the hightlight box, the text
    animation, but it doesn't continue to next slide! It stucks despite
    of the
    settings Edit Question > Options > (If correct answer)
    Action: Go to next slide). If I add new statement to my
    script, which is "Go to next slide" and then click on the right
    answer, it immediately jump to next page and doesn't show the
    hightlight box and the text animation. How can I wait until the
    duration of the animation ends and after that go to next slide?
    Script for the advanced action on my correct answer is:
    -> show rightHighlightBox
    -> show congratulationsText
    2. I need another pass fail option, for example - I have 30
    questions - 3 answers, one correct, 3 attemps. User submits wrong
    answer, but then he choose the right one, but he choose the wrong
    one at first ---> 0 points. It's e-learning and I need to allow
    users to correct them.
    3. How can I export the value of correctAnswers to my flash?
    Is it possible?
    Thank you very much for reply!

    Hi,
    You need to add a "Continue" statement at the end of your
    script otherwise you will have to click on Skip to go to next
    slide.
    And all the Quzzing information can be accessed from Flash
    using the Quizn variables.
    thanks
    ravi

Maybe you are looking for

  • Problem hooking up WRT160N

    During a snow storm, I lost my 2.4 G Linksys router.  I bought the Wrt160n.  I am setting up this router on my laptop, not the old CPU the 2.4 was connected to.  Well, the setup did not ask me did I want to set up a new router, I only had the option

  • FlashPaper hangs when converting PowerPoint t to Flash swf

    I tried a very simple one page powerpoint with the word test. I hit FlashPaper-convert to Flash SWF; the dialog box appears and indicates it is converting but it never finished. Is this also a bug and is there a fix? Thx, Dave

  • Web Service for moving docs from SAP Web AS to SharePoint

    Hi Experts, We have a requirement for moving the documents from SAP WebAS to Microsoft SPS through a Web Service. Can you please guide me on how to go ahead with this requirement. Waiting for your inputs. Regards Sahil

  • 802.1x Failed Authentication with WS-C3750G-24T

    Hi, I have already set up a lab  comprising of  1x2950-24 switch, 2x3750-24T in stack mode and 2x MS Domain Controller with AD 2008 Servers and NPS enabled (Domain level 2008). I use NPS as a Radius Server. I am trying to test the 802.1x framework in

  • How can I access BIOS/EFI in MBP Retina

    How can I access EFI (or BIOS equivalent) in Macbook Pro Retina? I tried to access with Option + Command + O and F. But, it doesn't work. Is there anyone who saw the bios settings of MBP Retina?