Forum Discussion

EricBrennan-862's avatar
EricBrennan-862
Community Member
11 years ago

Character limit in Text Data entry

hi all,

I am trying to set a limit to how many characters a user can input into a Text Data entry field?

I can set variables and triggers etc. if they type in the wrong text...

It is part of a system simulation and you can only type in x no of letters in a field...any ideas?

  • There is no official feature to limit characters in a text entry field. However, there is a super secret hack-ey way to limit characters without using javascript.

    Insert Slide > Survey Question > Essay. 

    In Form View, you'll see "Maximum number of characters: 5000." Change that number to any number less than 5000. Image 1 shows maximum characters = 15.

    In Slide View, there are two objects: a text box for the header (question) and a large data entry object text entry field. Delete the text box and resize the text entry field to the size and font desired. See Image 2.

    The underlying structure is the same as inserting a text entry field using the steps: Insert > Input > Data Entry > Text Entry Field. In the end, it's a standard data entry object text entry field with a default "TextEntry" text variable. The advantage? Character limits.

    Image 1: Essay question Form View show changing the character limit from 5000 to 15 and no feedback.

    Image 2: Slide View shows the deleted header text box and reduced the Essay question text entry field. The trigger panel shows the default TextEntry variable trigger.

    • ArtiCarm's avatar
      ArtiCarm
      Community Member
      Henderson Souza

      Five years has passed. Five Years!!

      and still this feature didn't developed yet XD XD

  • Hi there Eric,

    That's not currently possible using a built-in method in Storyline, but you can submit a feature request here.

    You might also be interested in a similar discussion that took place in this older thread. You may see a familiar face there :)

    Having said all that - I think there was some light mention of being able to do this with JavaScript. Though this isn't something I could help with, maybe others could jump in and provide some suggestions. 

    Thanks!

    • rexmor's avatar
      rexmor
      Community Member

      Maybe a Javascript will do a trick on this.

    • AlfiAtmojo-b069's avatar
      AlfiAtmojo-b069
      Community Member
      V Raja

      I Have done this functionality using javascript.

      Hi V Raja

      Can you share the file in here?

      Thanks.

  • MarcelTatang's avatar
    MarcelTatang
    Community Member

    Has this feature been added yet? I still can't find a way to restrict the number of characters input in an input text box. Will this feature ever be added?

  • Hello Marcel!

    There isn't currently a way to restrict the number of characters accepted in an input field. I hope others will share if they've configured a workaround.