Welcome to Axure Community Site Sign in | Join | Help
in Search

Axure

Linking after Selecting a Droplist Option (using Dynamic Panels)

 [[This article is relevant for versions of Axure RP prior to 4.4. Since 4.4, there is a new event called the OnChange event on droplists that allows you to more easily accomplish this.]] 

A number of people have asked how to use Axure RP to design a droplist that will link to a page after selecting a droplist option in the prototype.

The solution we have been considering is to make the prototypes data aware, support conditional logic, and add an OnSelect event to the droplist. Users could then define an interaction on the droplist that would implement "OnSelect If droplistvalue = value, Open page in Current Window".

This is definitely still in consideration, but in the meantime, we found a way to simulate this using dynamic panels.

Here is a sample file: DroplistOnSelectSample.rp

In this sample there are two droplists that change the state of a dynamic panel on the page (they could just as easily link to various pages).

The first does this by having multiple cases on the OnClick event of the droplist. When you click on the droplist in the prototype, the popup with the cases appears for the user to click just like if there were multiple cases on a button. This is simple to implement, but if you want to avoid showing the popup of cases in the prototype, take a look at the second droplist.

The second droplist is created using two dynamic panels rather than the droplist widget. One panel has states each containing an image of the droplist with a droplist value in it. The other panel has a single state representing the droplist options created using rectangle widgets and is set to hidden by default. An image map is placed over the dynamic panel with the droplist states and has an interaction that toggles the visibility of the options when clicked.

Here is the resulting prototype.

If your droplist is designed to link to different pages, this becomes even easier since you will not need to use a dynamic panel to show the droplist with different values. You will only need the dynamic panel containing the options.

Published Friday, June 30, 2006 10:44 AM by victor
Filed under: ,

Comments

 

jbiersc said:

This was a feature request was going to post to forum this morning but you're already mentioning it. That's great! It'd get my vote. We're in the process of currently trying to purchase Axure.

I'm assuming once it's implemented:
- could assign any of the interaction case actions just as you do with other interactions

- we could query the value somehow and be able to use it to set variable (you mentioned on 5/30).

Also appreciate the listed 2nd workaround.
July 5, 2006 11:19 AM
 

m.i. said:

I read your explanation and looked at the rp file, but I am still confused. I see how 'options panel' sets the state on 'HML panel'. But what is changing the states on 'droplist panel'? Sorry for the dumb question.
July 18, 2006 10:50 AM
 

victor said:

"But what is changing the states on 'droplist panel'?" - m.i.

The options in the Options Panel set both the state of the HML Panel and the Droplist Panel. If you widen the interactions pane or edit the case on any of options, you will see the state of both panels being set.
July 18, 2006 11:43 AM
 

DavidM said:

I still don't understand. Is the Onselect coming soon? I'm an agency AE, and I don't have programming skills, but I need to help with the flow of a web site from a marketing perspective.  Most of the documentation is pretty greek to me. The axure is pretty intuitive, except with this sort of thing (droplist) Please make it simple. I really want to buy this--but the droplist is confusing...

thanks

September 7, 2007 8:39 PM
 

victor said:

Hi David, there is now an OnChange event on droplists that you can use. Here is a link to an online training article that should help.

http://www.axure.com/au-onchange.aspx

Feel free to send an email to support@axure.com if you have any questions about this.

September 7, 2007 8:58 PM
Anonymous comments are disabled

This Blog

Syndication