Forum Discussion

HollyGroszko-4c's avatar
HollyGroszko-4c
Community Member
31 days ago

Minimum Character Requirement on Text Entry

I'm trying to create a 50-character minimum on the text entry input fields for a scenario interaction. I've added JavaScript and additional triggers, but they are not doing what I need. Can someone w...
  • Nedim's avatar
    31 days ago

    I found nothing wrong with your script. I tested it in an identical setup, and it works just fine.

    The only issue seems to be that your variable name 'vanessahines' in the script does not match the variable name in Storyline, which is "VanessaHines."

    var text = player.GetVar("vanessahines"); // should be VanessaHines