We are trying to create a web application to teach units to students of 4-6'th grade, the question would be like

what is average velocity of the car that moved 60km in 3 hrs?

The answer would be 20 km/hr, one way is we can give single input so that student can enter 20 km/hr, another way is there will be 2 inputs, one input can only accept values and other can accept units. so,in first input the value would be 20 and the second input the value would be km/hr.

But another unusual thing is while we teach about currencies, the units input have to be placed left of the value, eg:$ 5.Due to these situations, I am unable to decide what input to use.

Most of the students use the web application in a phone, so Which way would be intuitive, or is there any other way to do this, I am new to UX, suggestions would be appreciated.



Think about the goal of your web application.

In this case the goal is to teach units to 4-6th grade students. Wouldn't it be better to specifically ask them to enter the unit in a separate field? It would draw more attention to what you're trying to teach your students.

Also, and correct me if I'm wrong, you can't check if the '20' is correct and the 'km/h' is correct if you put it in one text field. You need two text fields for that.


It's important to be consistent in your placement of labels and text fields, but also to put units where your users expect them to be. As for your example you could use USD instead of $. I believe USD is positioned after the value.

| improve this answer | |
  • hey, nick thanks for the reply, I have edited the question, though your solution answers part of the question, can you suggest me in the case of currencies, thanks. – Sriker Ch Mar 26 '18 at 8:23
  • See my edit, @SrikerCh – Nick Groeneveld Mar 26 '18 at 8:26
  • 1
    From a technical perspective, it is definitely possible to check the correctness of an answer like 20 km/hr even if it's all typed into a single text field. If the answer is supposed to be entered in those units exactly, then it's really just a string comparison; if not, it's easy enough to find code that will parse a value with units and compare it to a reference value (so an equivalent representation like e.g. 5.55555 m/s could also be accepted). Of course, the fact that it's technically possible doesn't really mean anything about whether it's good or bad UX. – David Z Mar 26 '18 at 9:28
  • students are more familiar with $ than USD. – Sriker Ch Mar 26 '18 at 10:13

I think you have answered your own question. The way you have asked the question means the student only needs to enter a simple number, i.e. car moved 60km in 3 hours. So the student already knows the number will be km. You can use the same approach for currencies - just frame the question in such a way that it is really clear that the number to be entered is a currency and the student just enters a simple number.

| improve this answer | |

I will suggest you to keep a single field for answer and mention the required unit/currency in question itself. For example:

what is average velocity of the car (in km/hr) that moved 60km in 3 hrs?

It will serve following purpose:

  • Your question will be very clear.
  • The expected unit or currency in the answer will be clear for the students too.
  • Less number of fields to validate.
  • There are chances of students selecting the wrong unit while the answer is calculated correctly. A student might lose the credits for that efforts. Ultimately it will be a bad user experience in case of two inputs.
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.