Skip to main content
adobe5505
Known Participant
Jan 19, 2019 1:38 AM UTC
Answered

Enforcing button clicking order

Hello,

I am trying to create an alternative for a drag and drop interaction. Instead of dragging items and then dropping them in the correct order, I want users to click the items off to the left and then appear off to the right in the correct order.

I have achieved this so far by using transparent buttons over my images on the left and hiding the images on the right and then executing an advanced action to show the image on the right once the corresponding button is clicked.

Now I am trying to figure out a way to enforce the clicking order of the buttons. For example if the user clicks an image out of order, it will not appear to the right. The user would have to keep clicking buttons on the left in order to find the correct order for the images to appear on the right.

Does anyone have any suggestions on how to do this?

Thank you

This topic is closed to new replies. Start a new post to keep the conversation going.
dan561Correct answer
Inspiring
Jan 21, 2019 1:53 PM UTC

The simplest approach would be to disable the clickable buttons and only enable the next button in series when a correct button is clicked. There should not be any need to use transparent buttons - use image buttons instead.

On Enter - disable all buttons except the first in the series and hide all images on the right

Each button - a shared action that:

1. Shows the corresponding image on the right

2. Enables the next button in the series

3. Disables or hides the button that was just clicked (to prevent repeat clicking)

3 replies

adobe5505
adobe5505Author
Known Participant
Jan 21, 2019 5:55 PM UTC

Thank you, I was definitely over thinking that, I appreciate your simplistic approach! 

Translate
dan561Correct answer
Inspiring
Jan 21, 2019 1:53 PM UTC

The simplest approach would be to disable the clickable buttons and only enable the next button in series when a correct button is clicked. There should not be any need to use transparent buttons - use image buttons instead.

On Enter - disable all buttons except the first in the series and hide all images on the right

Each button - a shared action that:

1. Shows the corresponding image on the right

2. Enables the next button in the series

3. Disables or hides the button that was just clicked (to prevent repeat clicking)

Translate
Lilybiri
Legend
Jan 19, 2019 9:11 AM UTC

I have developed similar use cases for clients, am sure to be able to get this done. However, it would take me too much time which I cannot afford. You have to be very familiar with creating either shared/advanced actions of JS. Crossing my fingers that someone will be helping you. Sorry.

Translate