Skip to main content
Known Participant
October 8, 2014
Question

Working with Text entry boxes

  • October 8, 2014
  • 2 replies
  • 958 views

Hi,

I've created an interaction with text entry boxes.

The user has to type in the boxes and reveal a solution to an equation.

I want them to be able to clear their entry either while still on the slide or I want the entry to reset to blank when they leave the slide.

Is there a way to do this?

Thanks!

Patricia

    This topic has been closed for replies.

    2 replies

    Known Participant
    October 9, 2014

    Thank you Lilybiri.

    I have not used the scrolling text interaction and will have to explore it more.

    What I wound up doing was creating variables and using a conditional action expression to make the calculation.

    I then hid the text entry box submit buttons; added a button to use for  my calculation and assigned the action to advanced actions.

    The only thing I could not figure out how to do was use that one calculation button to also show feedback buttons. So I just created another button and used advanced actions to show/hide appropriate feedback if the learner entered incorrect values in the text boxes.

    If you have any other tutorials on creating multiple calculations that would be a great help. I have added a screenshot so you can see what I needed.

    Thanks again!! You are the best.

    Lilybiri
    Legend
    October 9, 2014

    In a conditional advanced action you can have as many decisions as you want. And by using the condition 'If 1 is equal to 1' for such a decision you are creating a standard action within a conditional action. Sequence is very important. You'll have first to do the calculations, then in another decision check the result of the calculation and based on the check show the appropriate feedback text.

    And don't forget to check if there is an entry for each box so that the calculation cannot lead to an impossible value. That is not a problem with a multiplication as in the example, but if you have a division and the second entry is empty you have a problem because empty is treated by Captivate as 0. Where is Null? - Captivate blog

    Known Participant
    October 11, 2014

    Hi Lilybiri,

    I don't understand if 1 is equal to 1.

    In the interaction I created the calculate button takes the values from the txt box entries and solves for the 0.85 (AnswerSfV)

    The feedback interaction then is set so that if box62 = 62 and if box 3 = 3 then show correct txt or show incorrect txt.

    I do not understand what would be 1 to be equal to 1.

    Thanks.

    Lilybiri
    Legend
    October 8, 2014

    They can clear the TEB, just by deleting the text in it. However you cannot control what is displayed by changing the variable associated with the TEB. At least not if you use the default TEB.

    Are you using CP8? In that case there is an alternative: the Scrolling Text interaction which allows to control the display by changing the variable associated with it. I used that in this example: Custom Short Answer Question - Captivate blog