Forum Discussion
Fill in the blank
If students enter €10 can we have it change automatically to €10.00 so it serves as a reminder to answer to two decimals
- Nathan_HilliardCommunity Member
With some JavaScript, yes. When the text entry changes, process it and return the modified value you want displayed into the text entry variable. Example attached. If we change the displayed value in the text entry, then the value changes. If you need to use this value for calculations later, remember to strip off the leading symbol first.
Example: https://360.articulate.com/review/content/db1b44ec-e8d0-406a-8dda-19066b17e30a/review
- CoreyWalkerCommunity Member
Hi Nathan_Hilliard
Can we add correct and incorrect feedback in your sample (currency. Story ) while we submit the button- Nathan_HilliardCommunity Member
If you are checking for "correctness" in the data the JavaScript is evaluating, then you could just add a variable in Storyline (maybe called feedback). You could then set its value in the script, depending upon if you determine the data is correct or incorrect. You could either make the feedback variable T/F or set to a number, allowing you to show a specific feedback layers in Storyline based on feedback's value. You could also just assign text to feedback directly, and then display %feedback% in a text string on your slide.
- CoreyWalkerCommunity Member
Thank you Nathanial Hilliard
- CoreyWalkerCommunity Member
One more its only work for two decimals (.00) so can we do also .25 .50....etc
- Nathan_HilliardCommunity Member
I am not sure what you mean. If you type 0.50 or .5, it becomes €0.50.
- CoreyWalkerCommunity Member
I mean, automatically shown in two decimal places what ever user type any number
- Nathan_HilliardCommunity MemberIt should convert anything you type into two decimals after the box loses focus.Do you mean instead of converting 2.3422 to 2.34, you want it to never show more than 2.34 and ignore the rest of what they type? And when typing 2, you want it to show 2.00 immediately upon pressing 2?if yes, then that's more complicated and I not sure it will work with the text input.
- CoreyWalkerCommunity Member
Yes
- CoreyWalkerCommunity Member
and one more can we randomize the order of both columns every time in drag and drop question?
Hi Olive Group,
Would you mind sharing which specific Drag-and-Drop interaction you are referring to? The graded question Matching Drag-and-Drop automatically randomizes the right column, but the left column is fixed. Sequence Drag-and-Drops are automatically shuffled, but this type of interaction only has one column. Feel free to share a screenshot of which exact interaction you're referring to so we can share more details about it.
- CoreyWalkerCommunity Member
Hello Olive Group!
There isn't currently a way to shuffle the answer choices, but I can submit this as a feature request to our Product Team. We'll return to this discussion when we have an update to share!
- CoreyWalkerCommunity Member
Ok thank you