Skip to main content
Participant
January 8, 2016
Question

User variable - Value

  • January 8, 2016
  • 2 replies
  • 312 views

I am a mac user (macbookair).  Created a user variable learner_name with value Learner. It works fine when learner types his name. But the value "Learner" does not occur when learner does not type his name. Is this a known mac problem?

    This topic has been closed for replies.

    2 replies

    BDuckWorks
    Inspiring
    January 8, 2016

    Setup an action that checks the value of the variable as ="", if that is true set the value to "Learner"

    Lilybiri
    Legend
    January 8, 2016

    @BDWorks  The default value is already 'Learner'! But it will not show up in the TEB at all, only appear later in text containers.

    Moreover "" is NOT working with Captivate, as I wrote in this article that is still valid. You need to create an empty variable to compare with the associated variable to the TEB, but that means that the variable was empty. In this case the variable had a default value of 'Learner' as stated by the OP.

    Where is Null? - Captivate blog

    I didn't point to this blog post because the user variable was not empty.

    Captiv8r
    Legend
    January 8, 2016

    Hi there

    It sounds as if you have inserted a Text Entry Box object and have linked your variable to it. If you want "Learner" to be in the box before the user interacts, you can't rely on the variable for that because the assignment doesn't occur until the user interacts. But all hope is not lost. Adobe has a way to configure what you want as the default text in the box. Just give it focus, then look in the properties.

    Cheers... Rick

    Participant
    January 8, 2016

    Hi Rick,

    that is a great feature. But I'm still at the very beginning. I'm happy with the empty box before the learner enters his name. But when he chooses not to enter anything, then - as a default - I'd like that instead of his name the value "Learner" appears.

    Lilybiri
    Legend
    January 8, 2016

    You cannot control what appears in a Text Entry Box, at least, not yet... If you don't need HTML output, you could use the Scrolling Text interaction where you can control what appears in the the interaction.