Forum Discussion

MiranMARTIN-8b0's avatar
MiranMARTIN-8b0
Community Member
3 months ago

Let user modify a variable

Hi everyone

In my last project i am letting my user to fill in his name. And then this variable is validated with a button name "Validate". But i wonder how to let my user correct this information if he/she did a mistake by typing it. 

Is it possible to display this variable in an editable form?

Thank you in advance :)

Best regards

Miran

2 Replies

  • Nedim's avatar
    Nedim
    Community Member

    Allowing the learner to edit their name means adding another text entry field where they can retype it. Each text entry field in Storyline is linked to a separate text variable. So, when the learner types a new name in the second field, it updates a different variable — not the original one.

    In the example I provided, the original userName variable captures the name entered on the first slide. On the next slide, I added a second text entry field connected to a new variable called updatedName. When the learner clicks the Update button, a trigger sets userName to the value of updatedName, effectively updating the original name.

  • There is a simple way to let the user edit a previously entered text variable. When you insert a new text-entry field, edit the trigger so that it updates the desired variable. 

    This is demonstrated in the attached file.