Skip to main content
Known Participant
July 9, 2019
Answered

Concatenation to build (populate) history text box

  • July 9, 2019
  • 3 replies
  • 1490 views

I am using Captivate 11.0 and trying to capture user selections and then populate a feedback history in a text box.  This is for a healthcare class in which the students select from a list of options to gather information and ultimatley make a decision.  For example, if they click on "Medications" I have a text box with medication data display.  I want to capture only the data for those items the user selects and save it to a variable so it can be reviewed later ("History" button) if the user needs to recall data from a previous slide. 

Anyway, I am not having issues with any one variable, I simply haven't found a way or method to concatenate dynamic user selected variables and populate a text box.  Maybe I'm just using the wrong tool for the job.

Can anyone help with a tip, example or provide simple direction?  I'm lost.

    This topic has been closed for replies.
    Correct answer Stagprime2687219

    Thanks. I look forward to reviewing your example. I've never used javascript within Captivate.  It sounds like that would do the trick as long as I can code it correctly. :-)


    My extended write up on this is now available here...

    Response History With A Sorted Display - eLearning

    Hopefully it is helpful.

    3 replies

    Stagprime2687219
    Legend
    July 9, 2019

    Here is link to a post I made a while ago that demonstrates this to some extent.

    It is a chat training where you make choices with people avatars - your choices are given to you in the form of the avatar chosen on the results slide.

    You can then click on each avatar for additional feedback about the choice.

    Maybe it will spark some ideas for you.

    Training Supplement - eLearning

    Stagprime2687219
    Legend
    July 9, 2019

    I have done something - I think is similar - in two different ways.

    1. I replicate my text box selection from "Slide A" where the user makes a choice to "Slide B" where they see the results. If the flag is tripped for the selection I reveal it on the results slide.
    2. I create a graphical representation of the choices that have been made and all of them are visible on the results page but the ones that were selected have full opacity while those that were not selected are made mostly transparent - again - based on whether or not the flag was tripped on the selection slide.

    In my scenarios - it is correct to say that the variable is not set until it is selected. Default values are at 0 for unselected and when the choice is made - the variable is set to a value of 1.

    Lilybiri
    Legend
    July 9, 2019

    You can insert multiple variables in one text container. Not really necessary to concatenate them.

    alveoliAuthor
    Known Participant
    July 9, 2019

    Thanks for your reply. The problem is, I can't predict what items the user may select.  Unless you are implying that I don't assign the variable until the user selects the specific item?

    Stagprime2687219
    Stagprime2687219Correct answer
    Legend
    July 11, 2019

    Thanks. I look forward to reviewing your example. I've never used javascript within Captivate.  It sounds like that would do the trick as long as I can code it correctly. :-)


    My extended write up on this is now available here...

    Response History With A Sorted Display - eLearning

    Hopefully it is helpful.