: How to allow user to enter text or upload file, but not both We used to have a two-step process for answering questions. On the first page the user indicated how he would answer: either
We used to have a two-step process for answering questions. On the first page the user indicated how he would answer: either by typing a response or uploading a file. On the next page either a textarea or file input was presented. Instead I plan to present a single page where the user can do either of those things, but not both. What is the most user-friendly way to do this?
More posts by @Welton855
1 Comments
Sorted by latest first Latest Oldest Best
You could create 2 radiobuttons. So that the user can make the choice whether he wants to add text or upload a file.
Or you could even do it without the radiobuttons and let the user click on the element he wishes to use.
When the user changes the radiobutton you can use javascript to disable the other field. Indicating he cannot use both fields.
If you do this it is very important to also check it at the backend code (php / asp / whatever) since it would be trivial to circumvent this (by disabling JS or by changing the DOM).
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.