Use JavaScript to Slice() First Name from Text Entry Variable

Jun 10, 2020

I am a JS noob and looking for some help when storing a new variable. Please excuse my noobness in advance.

I want to take a text entry (userName) and display only the first word typed.

I've highlighted my name as the text entry variable (userName). I want to only display the first name on this screen.

Here's the execute JavaScript code I've placed in Storyline. I want to turn userName into firstName and display %firstName% on a slide.

Thanks in advance! Any expert guidance will help me a ton.

2 Replies

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