I have a simple form where a user may contribute a link or upload a document adding a title and optionally some notes.
What's the best UI for allowing for either a URL or a file (but not both)?
|
I have a simple form where a user may contribute a link or upload a document adding a title and optionally some notes. What's the best UI for allowing for either a URL or a file (but not both)? |
||||
|
Since this is a form, I would actually just provide two buttons inline to choose the image, and not a separate dialog or a set of radio buttons. I believe this is actually better (in this instance) than having a single image button which opens a dialog to choose the option to then choose your picture. If you're choosing from your computer, the button on the main form would allow you to instantly open the file browse dialog as opposed to forcing the user to go through another dialog. Also, unlike radio-selection options (like the StackExchange option) both options are clearly present up front and are given equal weight. An example of this would be the imgur upload control, shown below. I might update it to make it more clear that the "Computer" and "Web" buttons are a picture source by indicating "From Computer" and "From Web" or something similar.
|
|||||
|
|
I think I would agree that one option should be more prominent than the other especially if there is a strong preference for one option. Perhaps something like this can work.
|
|||||
|
|
Our very own Stack Exchange has this implemented relatively well (just click the image icon in the toolbar above the answer field):
Though, I would just improve the switch between the 2 modes by increasing the clicking affordance of the inactive method (right now it doesn't look clickable). The key in this patterns is having some semblance of tabs: they clearly indicate the method of accessing the file. |
|||||||||||||||
|
|
I like using link UI conventions in this case, because that is what the user is doing... linking.
download bmml source – Wireframes created with Balsamiq Mockups |
|||
|
|
|
One thing I personally stay away from is putting both options equally visible on a same page. Speaking generally, I'd say first determine whether from your or the point of view of your company, one option is more desirable than another. Do you expect one option to be more frequently used than another by your users? Unless, your and users points of view are conflicting in some difficult ways, Pick the primary one and make it the default. Of course, you'd want to have a clearly labeled alternative shown but when visual hierarchy is right, the alternative should look secondary to this default, primary option. |
|||
|
|
|
Two possible options (that avoid an additional selection of the type of input) are:
|
||||
|
|
While I don't like having to click to choose an option, I think it's the lesser of several evils. Google does a good job with their image search input:
|
|||
|
|
|
I was very pleased with how Pinterest handled this conundrum, but I thought it could be improved a little (and made more generic). I created the below wireframe for an internal process, and would recommend it for you, too. Wherever it says "Product," substitute "image" or whatever element you intend. This wireframe was for a specific form to add products into our system, but it applies to anything. Note that it starts with two clear paths, represented iconically and with simple wording. From either path, you can switch to the other. And if you go the URL path, if any clarification is needed on what element to upload, it's laid out for the user to make an easy selection.
|
||||
|
|
|
I would use radio buttons to show the appropriate interface for either choice, but select by default the option you think people will use the most. |
|||
|
|
Ctrl+Gin the text editor will open SO's own image field that does what you describe. – zzzzBov May 30 '12 at 17:31