I have a question with Correct/Incorrect/Try again options. Someone on the Forum was kind enough to help out with IF, THEN, ELSE logic for try again. When you get Try Again and return to layer with NEB, what you typed in remains. I can set the NEB variable to 0 (Zero), but then learner has to delete the value before typing another response. Is there a way to clear out the original answer so the Numeric Entry Box is completely empty?
By default, the fill in the blank answers will show what the user previously answered as you have seen. Could you set it up to set the value of the variable to (blank) and then you could have that changed based on the timeline starting or similar, so that the whole slide is reset? I'm not sure what other logic you've got going on with your layers - so that may not work, but feel free to share a bit more information here so that folks can chime in.
I have a work around, but its a WORK around. Anyhow, if you was create multiple layers with the exact type of numeric box, then when they click on the continue from the try again layer it would take them to a new layer instead of the old one where there is a new blank entry for them. Its just a thought, not sure if it will even work.
Does anyone have an answer for this? I have 11 numeric entry fields and only two of them display a "0" when I preview the slide. I would like them all to either be 0 or blank.
I would like an answer to this Rick's question too. I'm using S2 and only a handful of the entries default to zero. When the final slide is previewed on its own there is clearly a difference in the values. Thanks!
This change to 0 seems to be triggered by manually renaming the Variable that the Numeric Field is associated with. By keeping the name the program automatically creates for the variable, the field stays blank. So, unfortunately, it's the process of opening and editing the Variable that does this.
Thanks for the update here and I'm glad you were able to figure it out. I was about to reply with the same additional information. Although I'm not sure what you mean about the issue with the final slide? That the values are not being accurately calculated from what the user enter? Could you share a bit more information?
Hi, I got the same problem- when renaming a numeric entry, it displays 0. Is there any solution? I do want to rename my numeric entry variables and don't want to see 0 when displaying the slide.
This thread is a bit dated and I see a 0 even when no modification is made to the name. Would you be able to share a sample .story file for me to take a look?
Hi Leslie, it will be much easier for designers to manage and track renamed variables especially when using triggers with those variables in diferent slides. It's not difficult to manage them without changing titles if they are few, but if they are much like I saw someone has 11 ones from another post, and that will definitely have an impact.
The only solution I had was to delete the variables that had the issue and re-create them. I now know not to use the copy feature on variables as this is what caused the error (my opinion.).
Thanks for sharing the rationale and sample file here with us. There was a method described here to change it back, but as Leslie mentioned it's also something we've reported to our QA team to investigate further and I've included this thread in that report. It seems that when creating a numeric entry, if you leave the default name and the initial value set at zero, the variable actually has the initial value as NaN. If, however, you create a numeric entry and change the default name, the variable has the initial value as zero which is now displayed to the users.
Hi Ashley, I've tried the method but it didn't work for me. I knew I could just leave the default name and I won't have that 'zero' problem. Thank you and Leslie for reporting it to your QA team, hope they will solve that issue in the future.
Sorry to hear that workaround didn't work on your end, and we'll keep you posted here in regards to any changes with the behavior of the set up once we hear from our QA team.
I have a solution for you. On a slide before the one where your numeric entry is situated (could be the start page), you put an "execute javascript" trigger. The code you enter is as follows:
var player = GetPlayer();
//Establish an empty javascript variable var empty = "";
//Set your Storyline Numeric variables equal to the empty js variable player.SetVar("YOUR_NUMERIC_VARIABLE_NAME_1", empty); player.SetVar("YOUR_NUMERIC_VARIABLE_NAME_2", empty); player.SetVar("YOUR_NUMERIC_VARIABLE_NAME_3", empty); player.SetVar("YOUR_NUMERIC_VARIABLE_NAME_...", empty);
And so on...
This will set the variables to empty, even though storyline can't do it automatically.
You will need to make a "player.SetVar(...."-line for each numeric variable you want to set to empty.
62 Replies
Hi Ken,
By default, the fill in the blank answers will show what the user previously answered as you have seen. Could you set it up to set the value of the variable to (blank) and then you could have that changed based on the timeline starting or similar, so that the whole slide is reset? I'm not sure what other logic you've got going on with your layers - so that may not work, but feel free to share a bit more information here so that folks can chime in.
Hi Ken,
I have a work around, but its a WORK around. Anyhow, if you was create multiple layers with the exact type of numeric box, then when they click on the continue from the try again layer it would take them to a new layer instead of the old one where there is a new blank entry for them. Its just a thought, not sure if it will even work.
Does anyone have an answer for this? I have 11 numeric entry fields and only two of them display a "0" when I preview the slide. I would like them all to either be 0 or blank.
Hi Rick,
It's an older thread, but here are some ideas on how to remove the 0 from that field although it may depend on which version of Storyline you're using, as I know folks in Storyline 2 haven't seen anything there even though the default value is 0.
I would like an answer to this Rick's question too. I'm using S2 and only a handful of the entries default to zero. When the final slide is previewed on its own there is clearly a difference in the values. Thanks!
This change to 0 seems to be triggered by manually renaming the Variable that the Numeric Field is associated with. By keeping the name the program automatically creates for the variable, the field stays blank. So, unfortunately, it's the process of opening and editing the Variable that does this.
Hi Katharine,
Thanks for the update here and I'm glad you were able to figure it out. I was about to reply with the same additional information. Although I'm not sure what you mean about the issue with the final slide? That the values are not being accurately calculated from what the user enter? Could you share a bit more information?
Hi, I got the same problem- when renaming a numeric entry, it displays 0. Is there any solution? I do want to rename my numeric entry variables and don't want to see 0 when displaying the slide.
Hi Joanne!
This thread is a bit dated and I see a 0 even when no modification is made to the name. Would you be able to share a sample .story file for me to take a look?
Hi Leslie, here it is.
Interesting find and I'm not sure why I did not see this in my testing, but I can see it in your file.
Is there a reason that the name matters to you? This will not be displayed to the user.
Hi Leslie, it will be much easier for designers to manage and track renamed variables especially when using triggers with those variables in diferent slides. It's not difficult to manage them without changing titles if they are few, but if they are much like I saw someone has 11 ones from another post, and that will definitely have an impact.
I understand Joanne and I will be sharing this with our QA Team to further review :)
The only solution I had was to delete the variables that had the issue and re-create them. I now know not to use the copy feature on variables as this is what caused the error (my opinion.).
Hi Joanne,
Thanks for sharing the rationale and sample file here with us. There was a method described here to change it back, but as Leslie mentioned it's also something we've reported to our QA team to investigate further and I've included this thread in that report. It seems that when creating a numeric entry, if you leave the default name and the initial value set at zero, the variable actually has the initial value as NaN. If, however, you create a numeric entry and change the default name, the variable has the initial value as zero which is now displayed to the users.
Hi Ashley, I've tried the method but it didn't work for me. I knew I could just leave the default name and I won't have that 'zero' problem. Thank you and Leslie for reporting it to your QA team, hope they will solve that issue in the future.
Sorry to hear that workaround didn't work on your end, and we'll keep you posted here in regards to any changes with the behavior of the set up once we hear from our QA team.
Any movement on this issue?
Hi Laurie,
I don't have an update to share on this issue yet, but we'll keep you posted here in the forums once there is any additional update.
Hi Laurie
I have a solution for you. On a slide before the one where your numeric entry is situated (could be the start page), you put an "execute javascript" trigger. The code you enter is as follows:
And so on...
This will set the variables to empty, even though storyline can't do it automatically.
You will need to make a "player.SetVar(...."-line for each numeric variable you want to set to empty.
Hope this helps everyone...
Thanks for popping in to share a solution with the community Snorre.
This works well. It also works when you just put it onto the same slide and set it to start when the timeline starts :-)
Thanks for popping in to share and letting us know that this works well for you as well David :)
This post was removed by the author
For me it does not work. The field now states "NaN" (not a number).