String length from SL variable to JS

Aug 29, 2019

Hi,

In Storyline 360, I have created a text box associated with a text variable. I have to send the content (text) of this variable by email. I use GetPlayer() and everything works fine. However, as soon as the content of the text box exceeds 500 or 600 characters,  the switch to javascript no longer works (it freezes). Is this a limitation of Storyline? Or Javascript?

Do you know how to ensure that the complete content of the text box is transmitted (this is an exam question in which students must produce a text of about 450 words (= about 4000 characters) and my client does not wish to use an LMS (Moodle or other)

Thank you for your help :-)
Alain

PS - I may be thinking about cutting the string into small parts in Storyline with the JS Substring function , and Concatenating them in the email; but I wonder if there might not be an easier way...  

================================ 

Bonjour,

Dans Storyline 360, j'ai créé une zone de texte associée à une variable texte. Je dois envoyer le contenu (texte) de cette variable par courrier électronique. J'utilise GetPlayer() et tout fonctionne bien. Cependant, dès que le contenu de la zone de texte dépasse 500 ou 600 caractères, le passage dans javascript ne fonctionne plus (il gèle). Est-ce une limitation de Storyline? Ou de Javascript?

Savez-vous comment faire pour que le contenu complet de la zone de texte soit transmis? (Il s'agit d'une question d'examen dans laquelle les élèves doivent produire un texte d'environ 450 mots (= environ 4000 caractères) et mon client ne souhaite pas utiliser de LMS (Moodle ou autre)

Merci de votre aide :-)
Alain

PS - Je pense peut-être à couper la chaîne de caractères en petites parties dans Storyline avec la fonction JS Substring, et les Concaténer dans le courriel; mais je me demande s'il n'y aurait pas plus facile...

1 Reply

This discussion is closed. You can start a new discussion or contact Articulate Support.