How to Make a Select List Interactive

Select list actions

Select lists, also called drop-down menus, are common web form elements that let people choose one item from a set. They’re handy for letting users choose, say, a method of shipping. But with a quick interaction they can also reveal additional information.


For example, if someone chooses an option for “PayPal” during the checkout phase of an ecommerce flow, the form might display a PayPal login. And if they choose “credit card,” a long number field and short CVV field might appear instead.


Same for shipping. Not every delivery method will take the same number of days. Giving people an estimate will help them choose the best option for their needs.


Choose a shipping message


Building your own options

UXPin has a HTML-like select or “drop-down” element — just search for “selectlist”. But it’s a little-known fact that you can create actions based on which item the user selects. You can use this to hide or reveal information and other form elements as required. Here’s how it works.



Create a multistate element whose states hold the various types of information you want to show.
Create a select list by searching for “selectlist”.
Add a new interaction to that select list.

Trigger: Option select
Action: Set state



Shipping with dates


Other ideas

You can apply this to many other use cases depending on what your users want to accomplish. For example:



How long will it take? The user chooses expedited shipping, and a time estimate appears.
PayPal or credit card? Make additional fields appear if the user opts to pay with Visa or Mastercard.
Do you have a promo code? Make a form field appear to accept the discount.
Shipping overseas? Hide domestic U.S. shipping options if the user’s sending a package to, say, Poland.

Get a free UXPin trial to build interactive forms today.


Join the world's best designers who use UXPin.Sign up for a free trial.Your e-mailTry it for free!

The post How to Make a Select List Interactive appeared first on Studio by UXPin.

 •  0 comments  •  flag
Share on Twitter
Published on March 06, 2017 08:00
No comments have been added yet.


UXpin's Blog

UXpin
UXpin isn't a Goodreads Author (yet), but they do have a blog, so here are some recent posts imported from their feed.
Follow UXpin's blog with rss.