Can I create a javascript in a captivate advanced action

Hello all:
I am just getting the hang of Advanced Actions and I am having trouble trying to utilize the Javascript Window.
I have three captivate variables v_Var1, v_Var2, and v_Var3.
I am trying to create a JavaScript function in the Javascript window to concantonate these into one variable  v_AllResponses.
Is there an example of such a script out there and can you point me to it?
I have looked but so far no luck.

You can define a variable to contain a space and use that in your Advanced Action:
The SPACE variable has a default value of (see screenshot).
That default value is the HTML for a space character. 
Not too many people know this, but you can add limited HTML tags to a caption by using Cp variables.  Here are the supported tags:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/TextField.ht ml#htmlText
This opens up a wide range of possibilities for dynamic text formatting of your variables.  For example, using a single text caption, you could change the color of the text to red or green depending on the tags you surround your variable with DURING RUNTIME.
Jim Leichliter

Similar Messages

  • Books on Captivate Advanced Actions

    Does anyone know about any books that are available for Captivate advanced actions?  Other than the books by IconLogic.

    Hi Melinda
    Thanks so much for the information. I'm on a constant quest to determine where to focus my efforts. Unfortunately, I have so many different irons in the fire it's very difficult to get everything I WANT to get done actually done.
    I asked because it's helpful for me to know what folks are looking for.
    Your post is expecially interesting to me at this time because I concluded facilitating a Captivate class yesterday. I used the Iconlogic books for the class and I have to say that I totally skip the section where Advanced Actions are presented. Not that I didn't cover them, but that what is presented in the book seems too far removed for me. While the example certainly shows creating an Advanced Action, I really cannot see an everyday application for what was presented.
    So what I do is to veer off on my own path and use some real world examples that are likely to be asked for. I say this because I've seen others ask for them here in the forums, so I'm guessing they are commonly desired actions.
    For example, I worked the class through Hiding the playback controls for Question slides. Then through automatically enabling the Closed Captioning area when playback begins. Then we worked through hiding and showing some images on a slide using Click Boxes. From there, we worked through keeping the user from being able to move from the slide until all interactions had been successfully dealt with.
    What seemed odd to me was that while that section often overwhelms some users, once we concluded with it, some of the class participants asked if they could see some "more complex" actions. I was stunned!
    Anyhoo, thanks for the feedback! Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How can we assign a JavaScript function on an TextInput action .

    Hello All ,
    I have a requirement that on ON_BLUR event of a MessageStyledText , I have to call a JavaScript function .
    This however should not refresh the page ( No submit action to the controller) .
    So how can we tie the JavaScript function to the TextInput at design time .
    Please auggest the needfull.
    Thank you,
    Srikanth

    Hi Tapash ,
    Actually my requirement was not to submit the form to controller .
    I got the solution for that . I have registered a JavaScript function to the MessageText in PR as
    pageContext.putJavaScriptFunction("callMethod","function callMethod() { var first=document.getElementById('First').value; ");
    OAMessageTextInputBean GoalTextBean2=(OAMessageTextInputBean)webBean.findChildRecursive("Second");
    GoalTextBean2.setOnBlur("callMethod()");
    Regards ,
    Srikanth

  • 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

  • How can I create an interactive form in Captivate 5?

    Hello...
    I'm creating a Captivate project for an elearning course that will be posted to an LMS.  I'd like to create an "Action Plan" at the end where users can click various actions they want (from a list) and then print that page to use as a take-away reference.  Is this possible in Captivate 5?  Are there other programs that could create this function and then be dropped into Captivate?  I don't need to track the results, just have the interaction on the page.
    Appreciate any help y'all can give!
    Lisa

    Hmmmm...I don't have any screen shots yet....it's in the planning stages.  But, think of it like a grocery list.  You would have a list of items already identified and each would have a checkbox or something next to it.  You could go down the list and click next to each item you want to purchase on your next grocery visit.  You would then be able to print a screen copy of the list showing the items you checked (unchecked items could still appear on the print copy as long as you could clearly see your chosen items).
    Hope that helps!  Thanks for inquiring...
    Lisa

  • How Can I Create A Javascript Pop-Up (On Open) Of My PDF?

    Hello All,
    I need to create a pop up window that will encourage the readers of the pdf to fill out and complete all feilds within the pdf before emailing it to a colleague. For this, we would like to use an image that we have already created. Unfotunately, being unfamiliar with Javascript, I do not know the correct syntax for creating th script that would create a pop up of the image we have created. 
    If anyone knows how I can do this, your help would be greatly appreciated.

    Winjack Solutions has 2 products, acrodialogs and acrobuttons, that can be used to create a pop-up dialog with buttons containing icon images that can bed used together to create a more visual dialog pop-up.

  • Can Anyone Create a Print Widget fo Captivate 4

    I am still unable to print a single slide in Captivate 4 I loaded the slides printer widget that cames with Captivate 4 in to Flash 8 in the hope I could edit it and just have the print option, without all the extras but don't know enough to make it work.  Is anyone out there able to create a printer widget for Cap4.
    I am dunfounded that there is no option to print a slide.  I have now started creating e-learning using courselab because it's so easy to print a slide in.
    Can anyone help!

    Hi again
    Did you ever try what I suggested in the thread at this link? (click here)
    Cheers... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Help! I can't create a javascript saveas for radiobox

    First, I want to say thanks for helping.
    I am new to javascript and coding in general, but I feel that I have been learning and picking up the coding from sites like this.  I am making a form using adobe acrobat pro 3D 8.1.0.  I have a combobox that I have a list of a bunch of locations.  The combobox is set to export a 3 or 4 letter or digit result that is unique to that site.  I have then set up a saveas on blur following the selection.  This is all working correctly.
    However, I several hundred radioboxes and textboxes in the document.  This document will be used for acceptance testing and I do not want to accidentally lose any data so I want to save after every selection or input in the textboxes.
    The following is my code for the combobox.
    // build file name
    var site = this.getField("siteName").valueAsString;
    Date.prototype.defaultView=function(){
    var dd = this.getDate();
    var mm=this.getMonth()+1;
    var yyyy=this.getFullYear();
    return String(mm+"-"+dd+"-"+yyyy)
    var today = new Date();
    var gmtHours = -today.getTimezoneOffset()/60;
    var cstHours = today.getUTCHours() + gmtHours;
    if(cstHours<10)cstHours='0'+cstHours;
    var min = today.getUTCMinutes();
    if(min<10)min='0'+min;
    var sec=today.getUTCSeconds();
    if(sec<10)sec='0'+sec;
    var timeStamp=today.defaultView() + "_" + cstHours + "-" + min + "-" + sec;
    var myFileName = site + "_" + timeStamp + ".pdf";
    // add folder name
    myFileName = "/f/file_test/" + myFileName
    myTrustedSpecialTaskFunc(this, myFileName);
    this.getField("docName").value = myFileName;
    I was struggling with the saveas and I don't want to create a new file everytime so I created a hidden textbox that has the file name.  I was hoping that I could just read this textbox and saveas using the original filename.  (The script above uses time in the filename so that would create a new file name every second)  The hidden text box is getting the values correctly and is working fine.
    I have tried several different methods of javascript on the radio buttons and text text boxes.  On the radio button I have tried all mouse options, but I was hoping to use mouse up.  The textboxes I want to use mouse, on blur.   Below is some of the scripts that I have tried.  I want it to be automatic and I want it to overwrite everytime without prompts.
    app.execMenuItem("Save");
    var oMyDoc = <… PDF being operated on …>
    app.execMenuItem("Save", oMyDoc);
    var myFileName = this.getField("docName").valueAsString;
    this.saveAs(myFileName);
    ....and I have tried others, but since they didn't work, I didn't keep track of them.
    I appreciate any suggestions!
    Thanks

    I responded to your other post in the scripting forum.

  • I can't create a javascript saveas for radiobox

    I started this discussion in acrobat windows forum and I think I should have put it here so I'm reposting it.
    First, I want to say thanks for helping.
    I  am new to javascript and coding in general, but I feel that I have been  learning and picking up the coding from sites like this.  I am making a  form using adobe acrobat pro 3D 8.1.0.  I have a combobox that I have a  list of a bunch of locations.  The combobox is set to export a 3 or 4  letter or digit result that is unique to that site.  I have then set up a  saveas on blur following the selection.  This is all working correctly.
    However,  I several hundred radioboxes and textboxes in the document.  This  document will be used for acceptance testing and I do not want to  accidentally lose any data so I want to save after every selection or  input in the textboxes.
    The following is my code for the combobox.
    // build file name
    var site = this.getField("siteName").valueAsString;
    Date.prototype.defaultView=function(){
    var dd = this.getDate();
    var mm=this.getMonth()+1;
    var yyyy=this.getFullYear();
    return String(mm+"-"+dd+"-"+yyyy)
    var today = new Date();
    var gmtHours = -today.getTimezoneOffset()/60;
    var cstHours = today.getUTCHours() + gmtHours;
    if(cstHours<10)cstHours='0'+cstHours;
    var min = today.getUTCMinutes();
    if(min<10)min='0'+min;
    var sec=today.getUTCSeconds();
    if(sec<10)sec='0'+sec;
    var timeStamp=today.defaultView() + "_" + cstHours + "-" + min + "-" + sec;
    var myFileName = site + "_" + timeStamp + ".pdf";
    // add folder name
    myFileName = "/f/file_test/" + myFileName
    myTrustedSpecialTaskFunc(this, myFileName);
    this.getField("docName").value = myFileName;
    I  was struggling with the saveas and I don't want to create a new file  everytime so I created a hidden textbox that has the file name.  I was  hoping that I could just read this textbox and saveas using the original  filename.  (The script above uses time in the filename so that would  create a new file name every second)  The hidden text box is getting the  values correctly and is working fine.
    I have tried  several different methods of javascript on the radio buttons and text  text boxes.  On the radio button I have tried all mouse options, but I  was hoping to use mouse up.  The textboxes I want to use mouse, on  blur.   Below is some of the scripts that I have tried.  I want it to be  automatic and I want it to overwrite everytime without prompts.
    app.execMenuItem("Save");
    var oMyDoc = <… PDF being operated on …>
    app.execMenuItem("Save", oMyDoc);
    var myFileName = this.getField("docName").valueAsString;
    this.saveAs(myFileName);
    ....and I have tried others, but since they didn't work, I didn't keep track of them.
    I appreciate any suggestions!
    Thanks

    George, thanks for the reply.  I am new to coding and I really don't know much about folder level scripts.  However, I did create the following trusted saveas script which I saved as a .js in adobe.  Is this what you are refering to?
    mySaveAs = app.trustPropagatorFunction(function(doc,path) {
    app.beginPriv();
    doc.saveAs(path);
    app.endPriv();
    myTrustedSpecialTaskFunc = app.trustedFunction(function(doc,path) {
    // Privileged and/or non-privileged code above
    app.beginPriv();
    mySaveAs(doc,path);
    app.endPriv();
    // Privileged and/or non-privileged code below
    I did try refering back to this script once, but I wasn't able to get it to work.

  • Can you create a javascript dynamic menu based on security data in oracleDB

    I am looking for a dynamic javascript menu that is generated based on the user role... basically i get the user role from ldap and then I have a Security table in oracle data base that has the permission info and i want to generate my dynamic menu based on the data in the database table.... the table has the following columns
    private String userId;
    private String security_level; // page level , field level
    private String permission; //CRUD
    private String permissionType; //ALLOW, DENY

    Hello Suzie,
    It is possible but you have "many" ways to do it, since what will happen is the javascript will be generated by an application.
    Are you developing a J2EE application? with or without JSF?
    The best way will be to Google to find a good Javascript menu library, and adapt the generation of it based on the content of your database.
    Regards
    Tugdual Grall

  • How can I create a "Next" button with Insert database action

    Hello,
         I want to create a "Next" button that will redirect to another page and at the same time to do an INSERT database action. I've searched on google but I didn't find nothing specific that could help me.
    Below are some screenshots:
    http://imagizer.imageshack.us/v2/800x600q90/22/2yqj.jpg
    http://imagizer.imageshack.us/v2/800x600q90/585/wbn6.jpg
         Thanks.

    DO NOT USE THIS CODE !!!!
    Declare 
      -- Added by ramani 20-feb-2013 
       Seq_Val_ Number; 
    begin 
        if  :P17_NWM_DOC_NO  is null  then 
           Select Nvl(count(NWM_DOC_NO),0) + 1  -- THIS IS VERY VERY WRONG !!! REPLACE WITH A SEQUENCE !!!!!!!!!!!!!!
            into Seq_Val_ 
            from  DMS_NEW_MASTER; 
           -- ref number 
            return  Seq_Val_ ; 
            --summa oru elsif irukku 
           end if;  
    end; 

  • What type of files can we create in Java?

    In general what type of files can we create in Java?
    For example, we can create .dat and .txt files as follows:
    DataOutputStream ostream;
    ostream = new DataOutputStream(new FileOutputStream("myfile1.dat"));
    or
    ostream = new DataOutputStream(new FileOutputStream("myfile2.txt"));
    Can we create ASCII?
    Thank you in advance for your answers.

    In general what type of files can we create in Java?You know that a file is nothing more than a series of ones and zeros, with eight of those bundled together as something called a byte. What they actually mean is what you make them to mean. Short: you can write and read any file type you like, but doing that semantically correct it is your responsibility.

  • I can not create EPS

    Hello,
    I have a problem in P6 EPPM V8.1. I can not create EPS nodes, when I try it an error message pop up telling me that Activity codes longer than 20 characters are not allowed but I revise all the projects already loaded and there aren´t codes longer than 20 characters. Can anybody tell me why is this happening? Is this a software bug?
    Regards
    Andres

    Hi,
    First of all check with your administrator whether you have the right privileges to create an EPS in EPPM. In release 8.1 the web version is called EPPM and the client is called Optional Client. All administrative works are done in EPPM. So for creating an EPS also you need to log in to EPPM.
    If you have the privileges for creating an EPS then log in to P6 EPPM and go to EPS page under Projects tab. There you will find the button of creating Sibling EPS. You can also create a sibling or child EPS from Action menu > Add > Add Sibling EPS/Add Child EPS
    Thanks,
    Dip

  • 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.

  • Captivate adds "Continue" to Advanced Action when Shape is deleted

    Hello
    I have discovered a particularly annoying 'feature' of Captivate, which can be demonstrated as follows.
    Add a Smart Shape to a slide, and call it TestShape.
    Create a new Advanced Action and call it TestAction (in this example use Standard Action but the behaviour also occurs for Conditional Action)
    Add an action (step) Show -> TestShape.
    Save the Advanced Action.
    On the slide, delete TestShape. This means, the first action (step) of TestAction can no longer be executed.
    Open the Advanced Action and look at Test Action.
    You will see, Captivate has added Continue as an action (step), in place of the broken action.
    This has caused problems for me in complex actions. I have made design changes including (deleting shapes e.g. messages I no longer want to show/hide), and not realised that this has caused additional Continue actions in my Advanced Actions. It manifests itself in 'jumping' behaviour where I expect the slide to be paused.
    To remedy it, I now need to review all my Advanced Actions before publishing, to make sure there are no unwanted Continue steps included.
    Has anyone else experienced this? Any tips / tricks for avoiding this problem?
    Thanks
    Sarah.

    Sarah, that has always been the case. I already filed a request to have the Continue replaced in that case with a more clear warning. But no response yet.
    Lilybiri

Maybe you are looking for

  • Can't accept terms and agreement

    My fathers iPhone 4S updated to iOS 7.0.2 and when he tries to update an app it Says he has to accept new terms and conditions. Nothing in the 54 pages allows Him to agree, suggetions?

  • I can't drag my music playlists from my computer to my iphone

    i can't drag my music playlists from my computer to my iphone.

  • Problem in calling dynamic actions in BDC

    Dear All, I have created a subroutine which is called when an entry is made in IT0015 for a particular wagetype. So I have used dynamic actions to serve the purpose. But the entries in IT0015 are made through a BDC, and I am facing in calling dynamic

  • A Bar at the Bottem of My Website

    Hey guys, so I am new to dreamweaver, I am trying to put a bar on the bottem of my website, that always stays. What I mean is, in a Browser when you scroll up and down the page, I want the bar to always be a part of the Browser.... I think that gets

  • How do I seard for 1980's music Videos?

    Hi all! Just wondering if anyone could help me please. Id like to know how to search for any 1980's music videos. Thanks heaps!