Display image based on the value of the variable of the choice by the user

Hi all, I hope someone can help with what I think is a simple request. Ive only been using Captivate 7 for a few days and still feeling my way around things.

I installed a question multiple choice quiz that has 4 possible answers (correct 1: incorrect 3.)

It works fine out of the box, and when a user presses the button send the response box appears showing if the user responded to this correctly or not.

What I want to do, that is forward a bit, and if the user gets the answer wrong I would a small image of a check mark appears next to the correct answer.

I have included my image on the stage, he gave an alpha of 0 to hide effectively.

In interactions in advance, I created a variable called showImage with an initial value of 0

What I am struggling with now is how to increase the value of the variable to 1 when a user selects a wrong answer and change the alpha of 0 to 100 for show the image illustrating the choice of the correct answer.

I know that what I have described, is essentially what is happening at the end of the quiz, if a user has access to review their answers but I would like to be able to do as they progress through the questions.

Thanks a lot for your help

D

Hi D,

What you need to do is rather than make his alpha 0. It completely hide the scene until the user gives the correct answer.

So, I want you.

(1) insert a picture

2) go to image and all properties panel up - untick 'Visible output.

(3) open properties Quiz, select under Actions failure level 1/2/3

(4) select 'Last attempt' as 'Show' and the image you you inserted

This way the image will appear if the user selects an incorrect answer.

I hope this helps.

See you soon,.

Anjaneai

Tags: Adobe Captivate

Similar Questions

  • How to conditionally display images based on the values of the variables

    I am building a demonstration Captivate containing a slide branching that allows the user to choose which way they want to view; Once they are done, they come back on this slide branching, and I want a check mark to display the button/path that they have already completed.

    I'm new to the use of variables and actionscript in Captivate, so I went the the documentation and the creation of variable is clear, as well as the use of conditional constructions, but I didn't know the instructions of scripts that look like they will allow me to display an image from the library when she is called in the conditional.

    Is this possible? If so, a pointer to an appropriate documentation or sample code would be greatly appreciated.

    Thank you

    Josh

    Hello

    When you insert images of the box, you click the Options tab and give the image a name that you may recognize. Then clear the Visible check box. This allows to keep hidden until you want to show it.

    However, note that even if all the image names are listed in the dialog box advanced Actions as being available for show, you will only be able to show an image if you run the fast Action of the blade where the image exists. So you will likely build a means by which you are setting up a variable to indicate that a section has been visited. Then create an action that is performed on slide enter to show the images based on the values of the variables.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • OBIEE reporting requiremnt:Display image based on the value of result report

    Hello


    I have an OBIEE reporting requirement, the report displays the result out of 10 based on a value selected in the command prompt dimension, what I want is if the score is less than 5, the image of warning should appear right in the report score with a sufficient distance and if the score is greater than 5, I want a right image tick.

    It will be a great help if someone will give me the solution as soon as possible, because I have a very urgent need.


    Thanks in advance.

    It took 3 clicks to hide the structure of the table...

    For the "how to return an image of the formula in the column" it's just the data format of the column that should be set to the URL of the Image and your column value must be the URL of the image. If you add a formula as CASE WHEN your_condition THEN 'http://.../picture1.jpg' WHEN your_condition_2 THEN 'http://.../picture2.jpg' END

  • Display Images based on the URL of the site

    Hello! I'm working on a project and I want a different logo image to appear on the first slide in a captivate course based on the URL of the site. I wonder if there is a way to do this and that this would imply. Thanks in advance!

    Then it should look like this:

    /* Convert the web address to lower case for comparisons sake */
    var webAddress = window.location.href.toLowerCase();
    
    /* Check if the web address contains part of the URL name */
    if(webAddress.indexOf('victortechnologies')>-1){
      /* The Web Address contains "victortechnologies' so set the Captivate User Variable to 'Victor' */
       window.cpAPIInterface.setVariableValue('vImageToDisplay', 'Victor');
    }else{
      /* The Web Address does not contain "victortechnologies' so set the Captivate User Variable to 'Thermal' */
        window.cpAPIInterface.setVariableValue('vImageToDisplay', 'Thermal');
    
    }
    

    So you should use a conditional tip Action 2 steps at the entrance to the first slide to:

    • Run this JavaScript (1 set = 1 for the State)
    • Check the value of the variable user vImageToDisplay and show/hide the appropriate image.

    Note that you will want to check if vImageToDisplay is equal to 'Victor '.  I was using "HTML5" in my action below because my images are different.

    I've tested this and did not run in synchronization problems.

  • Change the Image based on the line of dashboard

    Hello

    IM using OBIEE 11 G 11.1.1.5

    I need to show a dashboard (Image) the company logo on a line of dashboard. I have 5 companies and each has its own logo. That a company can be selected.

    Is there a way to building that?

    Thank you

    Published by: Andres on 16-ene-2012 12:52

    Hi Andres,

    We can make use of the "conditional display of sections within the dashboard based on the results of the analysis. One option is certainly write different analyses (static text or narrative mode) with your company newspapers and their incorporation in the various sections of their reports in the dashboard. These sections should be displayed conditionally based on the fast one of dashboard. You can create analysis, each read the variable of presentation (associated with the command prompt) and display a record only if you choose a particular company. (Ex: create a business with a single column as @{variables.CompanyPrompt}.) Create a filter on it as "equals 'Oracle'. If this analysis, would post a record only if the presentation variable is set to 'Oracle').

    I would keep you updated if I hit many effective otherwise.

    I hope this helps.

    Thank you
    Diakité

  • Apex, language of login page set after the connection based on the user pref browser lang and application-based

    Hello

    Request Express 4.2.3.00.08

    I created an application of multi languaguage in which the language is defined by setting: FSP_LANGUAGE_PREFERENCE

    But the login page, I would like to than the login page to be displayed in the browsers language.

    The url of the application connection looks like as shown below but the & BROWSER_LANGUAGE. product always (English).

    f? p = & APP_ID.:LOGIN_DESKTOP: & SESSION. : FSP_LANGUAGE_PREFERENCE: & BROWSER_LANGUAGE.


    LOGIN_DESKTOP is an intermediate page that has one before branch header for the page of real connection if the FSP_LANGUAGE_PREFERENCE is set prior to the loading of the page.

    If I set the language set in this URL, it works as expected:

    f? p = & APP_ID.:LOGIN_DESKTOP: & SESSION. : FSP_LANGUAGE_PREFERENCE:nl - page Login Show in NL

    f? p = & APP_ID.:LOGIN_DESKTOP: & SESSION. : FSP_LANGUAGE_PREFERENCE:-see the login page in EN

    When I put the application to choose the language based on the browser language that it works, but then I am not able to have users to save their preferences for the next time they are connected.

    Any ideas on why & BROWSER_LANGUAGE. translates by "in" even though the language in the browser is different?

    See you soon

    Bottom

    OK, he stares at me

    For all those interested, this is how.

    Create a page additional empy (with alias page LOGIN_FORWARD_PAGE) and set the url to connect to the application of this new page and set the value of the application on BRANCH_TO_PAGE_ACCEPT:

    f? p = & APP_ID.: LOGIN_FORWARD_PAGE: & SESSION. : BRANCH_TO_PAGE_ACCEPT:

    On the page to create a pl/sql process submit before calculations similar to one below which affect the en language, if the browser is not NL (in Dutch):

    If upper (substr (owa_util.get_cgi_env ('HTTP_ACCEPT_LANGUAGE'), 1, 2)) = "NL" then

    : FSP_LANGUAGE_PREFERENCE: = "nl";

    on the other

    : FSP_LANGUAGE_PREFERENCE: = 'en ';

    end if;

    And create a branch to submit before the treatment which redirects to the current login page (the value of FSP_LANGUAGE_PREFERENCE is then already set and the application is configured to use this setting).

    After that loging in you can extract the FSP_LANGUAGE_PREFERENCE based on the user.

    BTW, I had to switch to 4.2.5 there in 4.2.3 is a bug preventing to set session state when you use BRANCH_TO_PAGE_ACCEPT!

  • Display a message to the user w / result of data

    Howdy,

    First off it is a mission of the College work and it's especially complete; seeking advice and the experience here.  The mission is to create a calculator with many functions for each method of arithmetic.  It was easy enough, but the next step is to display a message to the user after each calculation.  For example, if the problem was 4 + 2, the message must be "the result of the addition is: 6. the creation of the part of the message by using the Msg to display the user-defined function is simple, but it is not exactly struck home.  I want to create a message that contains the result of the problem (for example 6).  As it is now I can't do that with the function of Msg, or if it is possible I can not quite understand.  I want to have a separate message for each function, but I don't know if I can incorporate the response into the message.  It's the underlying objective; How to integrate the response in a message dialog box to the user? If it is possible what should I watch?

    The VI himself is quite simple; case of structure for each arithmetic function and a certain time for execution loop.  X and there are entries and a drop-down list to select a structure if necessary. I've attached a screen below.

    Thank you

    THA

    You can use the Message to display to the user to view any string to the user. If the key is to use the palette of the chain to manipulate strings to get the error message.

    A subpalette of the palette of the chain is the range of number/String Conversion. This can help you get your (6) value into a string format and then you can concatenate that string however wished with the message.

    With the pop-up windows, you must make sure that you're not trigger this popup with every single loop, so make sure you put a case around the pop-up structure and place the logic in there to make it work only the case of popup when the value changes.

  • How to highlight a line in IR based on the user name

    Hello
    What is the best way to highlight a line in an IR, based on the user name. IE APP_USER.
    Suppose that if an APP_USER connect to the application, the line corresponding to the APP_USER international registration should only be highlighted.
    (The button change is not visible in IR)

    Hello

    Value of APP_USER is uppercase. Your name column values are lowercase.
    Example of code I have after string comparison is case-sensitive.

    I don't have to change your action Dynamics example JavaScript to convert the value of the cell uppercase

    this.affectedElements.find('table.apexir_WORKSHEET_DATA td[headers="NAME"]').each(function(i){
        var lThis=$(this);
        if(lThis.text().toUpperCase()=="&APP_USER."){
            lThis.parent().children().css({"background-color":"#55A955"});
        }
    });
    

    Now, it should work

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Based on the user dashboard sign on

    Hello

    I have to design a dashboard page that loads based on Department and users. The modules is in a table, the table has two columns, username and the Department.

    NOTE: There must be a dashboard page, but the content must be different depending on the user that connects.

    Department of user name
    User1 sales
    User2 sales
    The util_3 sales
    ACCT user4
    USER5 Acct
    Utilisateur6 Mktg
    USER7 Mktg

    .....

    How to start this project? Help, please.

    Thank you.

    Hello
    Create groups based on departments to the RPD, to groups such as sales, accounting, marketing etc... Assign users to specific groups (this means Department underspecific users). Create these groups in the web under manage Presentation catalog groups and users.
    Now, create a page with section per group.
    I mean
    Section1 - sales
    Section 2 - accounts
    Section3 - Marketing
    etc...
    I mean applying security for sections (section per group) properties of the section-> permissions and give access to a section specific to the specific group (remove the Everyone group) as I mentioned above.
    Now place the tha reports in sections according to your requirement. Sales in the sales section reports, accounts in the section and so on.

    If you want to create a report based on this table (user & dept). Apply security at the level of the table data in the presentation layer of RPD (right click-> properties -? permissions-> Filter tab), the value of dept assignment specific to a specific group, that filters the data in the dept column based on the user login.

    Hope this helps you :-)

    Kind regards
    Srikanth

  • Hide a metadata profile based on the user role.

    Hi all

    I need to hide a metadata profile (log, update) based on the user role page. I have added metadata to a rule like "change" and added the rule to the profile. Now I want the metadata submitted must be visible for couple of user roles (admin, contributor) and it should be hidden for other user roles. How to achieve this?

    The content Server: 11.1.1.8

    Thank you

    Maury

    (1) create a rule that allows you to hide the metadata for all roles

    (2) create a new one which will show use the condition of activation of rule with building userHasRole("contributor")

  • dynamically display title based on the value selected in the column picker

    Hi all
    Would it be possible to display the title of the dynamic report based on the value selected in the column picker. Suppose I have two State of the column and region. When I choose the status in the column picker the title of the report will show 'Summary of the situation' when I'll choose the region then the title will change to "summary of the region. Please help me...

    Hello

    Check your mail before I send the entire process with screenshots.

    Concerning

    NGO

  • Display of the image based on the menu drop down.

    I'm new to the Live Cycle Designer and trying to create a form where you can select a name of an image in a drop-down list and the image appears on the page to print.  The images would be vary in size, so what matters.

    I have copy and pasted using Microsoft Front Page code and it works but not sure how to convert a .pdf file.   Maybe it is not even possible I wonder where the images reside?

    Here's my code for the cover Page:

    < html >
    < head >
    < script type = "text/javascript" >
    {Window.OnLoad = Function ()}
    setImage() {} function
    var img = document.getElementById ('image');
    IMG. SRC = this.value;
    Returns false;
    }
    document.getElementById("ImageList").onchange = setImage;
    }

    < /script >


    < / head >
    < body >

    < select id = 'ImageList' >
    < option value = "images/transimage.gif' > Select Image < / option >"
    < option value = "images/image1.gif" >
    Image 1 < / option >
    < option value = "images/image2.jpg" >
    Image 2 < / option >
    < / select >

    < p > < img id = "image" src = "images/transimage.gif" / > < / p > "

    < / body >


    < / html >


    Thanks for any help.

    If you did that the value of exports is set on the binding tab, then it should work. You save the form as a "dynamic" PDF vs static? Otherwise, try recording in a dynamic form.

  • Display image gif from the Internet in labview

    Hello

    I want to display a gif of the Internet and display them in the labview. How can I do this? for example: http://icons-ak.wxug.com/i/c/k/nt_cloudy.gif

    I couldn't find any vi for gif images in the "palette of graphical Format.

    You can manually convert the image in another format or do a search here for screw read GIF files. Here's an example - http://forums.ni.com/t5/LabVIEW/Controlling-Gif-aninimation/m-p/970543?view=by_date_ascending#M43520...

    If you want to transfer the image using LV, you can use Datasocket Read and add '[text]' at the end of the URL. This will return the binary data as a string, you can then write to a file.

  • display based on the user

    Hi Experts,

    I have a requirement where I need to show the screen based on the logged in user.

    http://localhost:9000 web /-determinations9000/enquete/customrule/fr-u.s./attribut ~ interview_complete ~ global ~ global? user = comments

    If the user is prompted then 1 SCREEN appears
    If the user is not prompted SCREEN 2 is displayed.

    How this functionality can be achieved.
    The pointers will be of great help.

    Kind regards
    Sameer

    You are right to make this need to enter the user name in the session of rules somehow. So, there are 2 problems:
    1. the representation of the user in the session of rules
    2. how to manage the display of the different screens

    About 1, create a global attribute for the user name. The "user = comments" you see in the URL for OWD is not really used for anything anyone internally. The SecurityService does not work in the OPA at the present time. The user name (security token) is passed to the InterviewEngine at the time of session creation, but is not used. So to access that piece of information you can possibly create an OnRequireSessionEventHandler that you provide the user information and then create your own session and fill the username in the new session. (Ideally, you would use an OnSessionCreatedEventHandler but you do not have access to the SecurityToken recalled). Another option is to set up an OnRequestEventHandler and direct access to the web query to get the user name and write it in the session.

    2, regarding if it is a question that should be displayed differently for users, and then as you suggest a screen flow branching on the user name could then be used, or if you do not use the screen flows and instead to use attribute goals then use procedural rules to manage navigation. If this is the summary screen which should vary then, you place all the controls for each user in folders and apply attributes of visibility to the folder level to achieve the desired effect. (depending on how complicated and different screens 2 question are that you can use attributes of visibility on every control, i.e. to put the two logical screens in 1 OPA screen, just hide the irrelevant controls for specific user)

    Hope that helps.

  • Approver dynamic groups based on the user of the input values

    Hi all
    I need to create groups for approval in SOUL based on the input values by the user in a special SIT.
    For Ex: If the user eneters 'Yes' for a particular segment, I need to send a set of approvers and the user eneters 'no', so I need to send another group of approvers. Please let me know how it can be obtained by the SOUL.

    Thank you
    REDA

    Hello

    1 define an attribute in the SOUL who reads this segment of the table of transactions of SSHRC.
    2. create the conditions and rules based on this attribute to change permissions.

    Kind regards
    Laulagnet

Maybe you are looking for

  • Signing with Apple ID

    I'll put up a new mac and I can not connect because the server error. What can I do?

  • continuous numbering from the previous list

    Is there a way in Pages for iOS to have the numbering of a list "continue to precedent", as it is possible in Pages for Mac 5.6?

  • Merge 2 computers

    HI people, I have serched the knowledge base, but can't find a definitive answer. The wife and I have our own computers laptops (MacBook Pro and MacBook Air). We buy a family iMac now children need to use a computer for school. The question is how we

  • measuring time between 2 signals

    Hello: I want to use the sequence attached to verify the relationship of input voltage (Vi) ship & output current (Io). I build 2 arraies VI and o with loop at the same index. How can I get the delay between the Vi and Io signal? Thank you!

  • The amplitude of the frequency. Bode CD. State space

    Hi all Gently, I have a simple model that gives me a Bode phase and magnitude, using the block 'CD Bode'. AFAIK, this block takes the representation of the State space and assesses the frequency and scale of the system. Can I change the value of the