Skip to main content
Inspiring
August 2, 2018
Answered

Variable from Text Entry Box being inconsistent

  • August 2, 2018
  • 7 replies
  • 506 views

I have a Text Entry box where users type in their name. I set it so that that variable is called "FullName."

Then, at the end of the course, I have a Completion page that says roughly: "Thanks, $$FullName$$."

When I publish and run my course on our server (not an LMS though), the variable is inconsistent--sometimes it shows up at the end, sometimes it doesn't.

Most consistently, it seems it takes two tries for it to show up, meaning: I type the name, click Enter, get to last slide and see nothing, then I rewind back, click Enter again, and then on the last slide I see it.

I've triple-checked my work and I'm pretty sure I have all of the right settings. Why might this be happening and is there a fix?

Thanks!

Inna

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer innaSF

    Thank you, Rod. I tried that and it was still being buggy.

    BUT! After all sorts of trial and error, it appears what was breaking it was that I had "Retain Text" and "Auto-Submit" checked for the Text Entry.

    To me, it sounded like that would 'retain' the variable and 'auto-submit' in case the user forgot to click Enter, but I guess it was retaining the blank default text I had within the box maybe?

    I can't believe it was that simple, I feel sort of silly now, but hopefully this can help some future designers.

    7 replies

    RodWard
    Community Expert
    Community Expert
    August 3, 2018

    Something may be wiping out your variable value along the way.  Try inserting the variable into a Smart Shape on an early slide. Set the timing of the Smart Shape to Rest of Project and then watch the value shown in the Smart Shape as you progress through to the end.  It should then show where the variable is either not being set or else being reset somewhere.

    innaSFAuthorCorrect answer
    Inspiring
    August 7, 2018

    Thank you, Rod. I tried that and it was still being buggy.

    BUT! After all sorts of trial and error, it appears what was breaking it was that I had "Retain Text" and "Auto-Submit" checked for the Text Entry.

    To me, it sounded like that would 'retain' the variable and 'auto-submit' in case the user forgot to click Enter, but I guess it was retaining the blank default text I had within the box maybe?

    I can't believe it was that simple, I feel sort of silly now, but hopefully this can help some future designers.

    Lilybiri
    Legend
    August 7, 2018

    That is weird. Retain text only means that the text will be shown in the TEB.  You don't validate the TEB input, or do you? The vairable is populated when the user types, the submit is really only necessary when you want to validate.