How to remove an initial value (0) from a "Numeric Entry" field

Apr 09, 2014

Hello,

Can anyone know, how to remove an initial value i.e. 0 from a "Numeric Entry" field?

Thanks in advance....

74 Replies
benny niran

same for me -

i need it to  build tests for schools all over the country  for work.  and i got really urgent deadline for it.

i've done anything that is suggested on google, but nothing is usefull enough for my needs.

this is an extremly urgent matter, thank you for your efforts.

 im talking about storyline 3 Patch , (not 360).

 

 

 

valeria baron


Hello, I have also encountered this problem several times, I have had to look for other creative ways that have not worked either (through a JavaScript trigger), this currently creates a poor user experience for users because users need to solve exercises in math and when I show them that a certain exercise is equivalent To 0 I am presenting something wrong pedagogically. I need the text box to be completely empty. I would be happy if you could help with this issue when you release the next version of Storyline 3 as soon as possible, a large amount of what I do is done in numerical text boxes.

or co

Hi Ashley,
As you can see, this discussion is from 5 years ago, and people are still complaining.
Until now, articulate only released a fix for storyline 360, although storyline 3 Exist before 360 and we all have this problem for several years.
if articulate already found a fix for 360 so i guss its the same fix for storyline 3.
We would really appreciate if articulate can fix it as soon as possible and release an update.

Thank you.

Ashley Terwilliger-Pollard

Hi Or,

Storyline 360 will always be the latest, most up-to-date version and you can see the release history for our latest build 3.28.18944.0 here. We’re continuing to support Storyline 3 with bug fixes, but we aren’t adding any major new features to Storyline 3 or sharing a release schedule.

The issue that occurred and the subsequent fix in Storyline 360 and Storyline 3 was a bit different than in Storyline 2 due to the difference in how each of the authoring tools is structured. 

Once the next update of Storyline 3 is ready, we'll post here to let folks know! 

Lauren Connelly
Hi all!
 
We just released Update 7 for Storyline 3! (Build 3.7.20003.0) 🎉
 
Remember the issue where numeric-entry fields displayed default values of zero after renaming their underlying variables? In update 7, the numeric- entry fields will remain blank until learners enter values. 
 
 
Jeff Forrer

Hello.  I just ran into this with the latest update of 360, however I was doing this the wrong way, just in case anyone else runs into this.

I made my new vars and assigned them to the num entry field, this does not work, you still get the initial 0 in that field. 

NOTE 1: It looks like you have to "rename" vs. "replacing" the var with a new one.

NOTE 2: I need to check if the user entered a value upon Submit, upon checking for 0 the Default, even though it is not showed initially, SL does not see it as zero so I cannot check for init value which is odd.  I also tried between -1 a 1 and that did not work.

Katie Riggio

Hi Brian,

Thanks for reaching out, and I'm sorry you are facing this!

We released a fix for this problem in Storyline 360 Update 28 and Storyline 3 Update 7, but I'm happy to explore further!

I'm having trouble recreating the zero value in a numeric-entry field in a sample Storyline 360 Update 41 slide. Here's a quick recording of the test.

Are you comfortable with sharing your slide so I can try to replicate it? You can use this private upload link.

Steven Walsh

I had this happen to me as well. Looking over the history of this issue, I found out why. Alyssa Gomez, 2 years ago: "This is happening because there is a bug in Storyline 360 where when you rename a numeric variable, the entry field and the variable reference display a 0 instead of the default blank."

My solution is to return the numeric variable to the input field, then create a second trigger that sets my variable to the numeric variable when the input field looses focus.

Snorre Rubin

You can do a work-around, using javascript and jQuery. 

First thing is that you need to import jQuery to the browser. You do this with a javascript trigger:

if (window.jQuery == "undefined") { 
var head = document.head;
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://code.jquery.com/jquery-3.6.0.min.js';
head.appendChild(script);
}

Second you need to add the triggers. If there is only the one numeric input, or of you want to target all input fields in the slide, you can use the code $('input').prop('value', '') .  A better way would be to go through all of them, and check if they have the value "0". Like so:

$('input').each(function() {
   if ($(this).prop('value') == '0') {
      $(this).prop('value','')
   }
}

If the reset button and the input is on the same slide, you can put the triggers in the same button. I.e. Set NumericEntry to value 0 and Execute JavaScript

If the input(s) is/are on a different slide you need to set the JavaScript to trigger when the built-in variable "Menu.SlideNumber" changes. This will make it trigger each time the user visits the slide, without having to restart the timeline.

Note that all of this works in Storyline 360, but might not work in other versions.